Created
December 5, 2016 20:01
-
-
Save broady/1d668ba12b12f450e8feffb21383ba44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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