Release v0.6

- Helm chart: use quay image, add color env var, rename backend env var, adjust deployment strategy and set liveness probe to 2s
This commit is contained in:
Stefan Prodan
2018-08-16 00:09:02 +03:00
parent cf8531c224
commit 8a6a4e8901
13 changed files with 82 additions and 36 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-rc.10
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
@@ -60,5 +60,5 @@ spec:
value: "grey"
- name: message
value: "Greetings from backend grey"
- name: backend_url
- name: backendURL
value: "http://podinfo-store:9898/echo" #"https://httpbin.org/anything"
+2 -2
View File
@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-rc.10
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
@@ -60,5 +60,5 @@ spec:
value: "orange"
- name: message
value: "Greetings from backend orange"
- name: backend_url
- name: backendURL
value: "http://podinfo-store:9898/echo" #"https://httpbin.org/anything"
+2 -2
View File
@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-rc.10
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
@@ -61,5 +61,5 @@ spec:
value: "blue"
- name: message
value: "Greetings from podinfo blue"
- name: backend_url
- name: backendURL
value: "http://podinfo-backend:9898/backend"
+2 -2
View File
@@ -28,7 +28,7 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-rc.10
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
@@ -64,5 +64,5 @@ spec:
value: "green"
- name: message
value: "Greetings from podinfo green"
- name: backend_url
- name: backendURL
value: "http://podinfo-backend:9898/backend"
+1 -1
View File
@@ -27,7 +27,7 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-rc.10
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
+17 -3
View File
@@ -7,6 +7,12 @@ metadata:
app: podinfo
spec:
replicas: 3
minReadySeconds: 15
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
app: podinfo
@@ -17,9 +23,17 @@ spec:
annotations:
prometheus.io/scrape: 'true'
spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:0.6.0-beta.7
image: quay.io/stefanprodan/podinfo:0.6.0
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- sleep 3
command:
- ./podinfo
- -port=9898
@@ -33,7 +47,7 @@ spec:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 5
periodSeconds: 2
failureThreshold: 1
livenessProbe:
httpGet:
@@ -51,7 +65,7 @@ spec:
value: "blue"
- name: message
value: "Greetings from podinfo blue"
- name: backend_url
- name: backendURL
value: "http://podinfo-backend:9898/echo"
- name: configPath
value: "/var/secrets"
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
labels:
app: podinfo
spec:
type: ClusterIP
type: LoadBalancer
ports:
- port: 9898
targetPort: http