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:
matchLabels:
io.kompose.service: deployer
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: conf
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: manager
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: mongo
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: mysql
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: planner
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: provisioner
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: rabbit
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: semaphore
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
creationTimestamp: null
......
......@@ -14,7 +14,13 @@ spec:
matchLabels:
io.kompose.service: sure-tosca
replicas: 1
strategy: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 50%
maxUnavailable: 50%
minReadySeconds: 10
revisionHistoryLimit: 3
template:
metadata:
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