Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Last active May 7, 2019 09:30
Show Gist options
  • Save akash-gautam/5bf2fdd37b6487401d53506f393baa84 to your computer and use it in GitHub Desktop.
Save akash-gautam/5bf2fdd37b6487401d53506f393baa84 to your computer and use it in GitHub Desktop.
deployment.yaml file for hello app
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: helloapp
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: helloapp
env: {{ .Values.labels.env }}
cluster: {{ .Values.labels.cluster }}
spec:
containers:
- name: helloapp
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
readinessProbe:
httpGet:
path: /hello
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment