Skip to content

Instantly share code, notes, and snippets.

@ranhsd
Last active June 8, 2017 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranhsd/d77012db340df98d6c28e0f076927220 to your computer and use it in GitHub Desktop.
Save ranhsd/d77012db340df98d6c28e0f076927220 to your computer and use it in GitHub Desktop.
parse-server-deployment.yml
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