Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 06:57
Show Gist options
  • Save velotiotech/2c9a88dd480981787c5cce4ad3032a82 to your computer and use it in GitHub Desktop.
Save velotiotech/2c9a88dd480981787c5cce4ad3032a82 to your computer and use it in GitHub Desktop.
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