Last active
June 8, 2017 08:00
-
-
Save ranhsd/d77012db340df98d6c28e0f076927220 to your computer and use it in GitHub Desktop.
parse-server-deployment.yml
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: my-parse-app | |
spec: | |
replicas: 1 # number of running pods | |
template: | |
metadata: | |
labels: | |
name: my-parse-app | |
app: my-parse-app | |
tier: backend | |
role: application-server | |
spec: | |
volumes: | |
- name: my-parse-app-config | |
configMap: | |
name: my-parse-app-config | |
containers: | |
- image: gcr.io/my-parse-server-proj/my-parse-app:v1.0 # image name and tag from the container registry | |
imagePullPolicy: Always | |
name: my-parse-app | |
command: ["npm","start",--,] # run custom command of npm start with the configuration file | |
args: ["/etc/config/config.json"] | |
volumeMounts: | |
- name: my-parse-app-config | |
mountPath: "/etc/config" | |
readOnly: true | |
ports: | |
- containerPort: 1337 | |
readinessProbe: # important for load balancer helath check | |
httpGet: | |
path: /parse/health | |
port: 1337 | |
initialDelaySeconds: 5 | |
timeoutSeconds: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment