Skip to content

Instantly share code, notes, and snippets.

@broady
Created December 5, 2016 20:01
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 broady/1d668ba12b12f450e8feffb21383ba44 to your computer and use it in GitHub Desktop.
Save broady/1d668ba12b12f450e8feffb21383ba44 to your computer and use it in GitHub Desktop.
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
labels:
app: readiness-bug
name: readiness-bug
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
maxSurge: 100%
template:
metadata:
labels:
app: readiness-bug
spec:
containers:
- name: readiness-bug
image: broady/k8s-readiness-bug:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
env:
- name: ANYTHING
value: something
readinessProbe:
httpGet:
path: /healthz
port: http
timeoutSeconds: 1
---
kind: Service
apiVersion: v1
metadata:
labels:
app: readiness-bug
name: readiness-bug
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: http
selector:
app: readiness-bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment