Created
July 1, 2021 07:41
-
-
Save JaniKibichi/e988a41c585398b3c32cb4d3ada94d35 to your computer and use it in GitHub Desktop.
Deployment with Firebase secrets
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: ussd-deployment | |
labels: | |
app: ussd | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: ussd | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 33% | |
template: | |
metadata: | |
labels: | |
app: ussd | |
spec: | |
volumes: | |
- name: firebase-key | |
secret: | |
secretName: firebase-key | |
containers: | |
- name: ussd-api | |
image: gcr.io/smart-surf-285319/ussdapi | |
volumeMounts: | |
- mountPath: /var/secrets/firebase | |
name: firebase-key | |
env: | |
- name: GOOGLE_APPLICATION_CREDENTIALS | |
value: /var/secrets/firebase/key.json | |
ports: | |
- containerPort: 7500 | |
livenessProbe: | |
httpGet: | |
path: /health | |
port: 7500 | |
initialDelaySeconds: 400 | |
periodSeconds: 200 | |
readinessProbe: | |
httpGet: | |
path: /health | |
port: 7500 | |
initialDelaySeconds: 400 | |
periodSeconds: 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment