Created
November 19, 2020 17:02
-
-
Save didil/880bf88c19ffbb03417484c719e6afea to your computer and use it in GitHub Desktop.
Autobucket Deployment example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bucket-text-api | |
labels: | |
app: bucket-text-api | |
annotations: | |
## Custom Annotations start here | |
ab.leclouddev.com/cloud: gcp | |
ab.leclouddev.com/name-prefix: ab | |
ab.leclouddev.com/on-delete-policy: destroy | |
## Custom Annotations end here | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: bucket-text-api | |
template: | |
metadata: | |
labels: | |
app: bucket-text-api | |
spec: | |
containers: | |
- name: bucket-text-api | |
image: quay.io/didil/bucket-text-api | |
ports: | |
- containerPort: 8000 | |
env: | |
- name: PORT | |
value: "8000" | |
- name: GCP_PROJECT | |
value : autobucket-demo | |
- name: BUCKET_NAME | |
value: ab-default-bucket-text-api | |
- name: GOOGLE_APPLICATION_CREDENTIALS | |
value: /var/secrets/gcp/sa.json | |
volumeMounts: | |
- mountPath: /var/secrets/gcp | |
name: storage-writer-key | |
resources: | |
limits: | |
cpu: "500m" | |
memory: "128Mi" | |
volumes: | |
- name: storage-writer-key | |
secret: | |
secretName: storage-writer-key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment