Skip to content

Instantly share code, notes, and snippets.

@0xAhmed
Created September 27, 2017 20:05
Show Gist options
  • Select an option

  • Save 0xAhmed/0ae709b4930a46642858996cdabab172 to your computer and use it in GitHub Desktop.

Select an option

Save 0xAhmed/0ae709b4930a46642858996cdabab172 to your computer and use it in GitHub Desktop.
Example k8s Deployment
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: kubeapp-production
spec:
replicas: 3
template:
metadata:
name: kubeapp
labels:
app: kubeapp
env: production
spec:
containers:
- name: kubeapp
image: gcr.io/PROJECT_ID/app:1.0
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /health
port: 8080
command: ["/app"]
ports:
- name: kubeapp
containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment