Commit 384e3109 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added rolling updates and update script

parent 199e1025
#!/bin/bash
kubectl create -f ../k8s/CONF/
sleep 5
kubectl get all
kubectl delete -f ../k8s/CONF/
#!/bin/bash
deployments=(manager sure-tosca planner provisioner deployer)
for deployment in ${deployments[*]}
do
echo "----------------- updating image for $deployment---------------"
kubectl set image deployment $deployment $deployment=qcdis/$deployment:3.0.0
kubectl rollout history deployment $deployment
done
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: deployer io.kompose.service: deployer
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
namespace: conf #namespace: conf
annotations: annotations:
kompose.cmd: kompose convert kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309) kompose.version: 1.16.0 (0c01309)
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: manager io.kompose.service: manager
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: mongo io.kompose.service: mongo
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: mysql io.kompose.service: mysql
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: planner io.kompose.service: planner
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: provisioner io.kompose.service: provisioner
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: rabbit io.kompose.service: rabbit
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: semaphore io.kompose.service: semaphore
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
...@@ -14,7 +14,13 @@ spec: ...@@ -14,7 +14,13 @@ spec:
matchLabels: matchLabels:
io.kompose.service: sure-tosca io.kompose.service: sure-tosca
replicas: 1 replicas: 1
strategy: {} strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template: template:
metadata: metadata:
creationTimestamp: null creationTimestamp: null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment