Updating etcd cluster
This commit is contained in:
Родитель
963555b081
Коммит
2060de4608
|
@ -11,7 +11,11 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: etcd-operator
|
||||
image: quay.io/coreos/etcd-operator:v0.4.2
|
||||
image: quay.io/coreos/etcd-operator:v0.9.2
|
||||
command:
|
||||
- etcd-operator
|
||||
# Uncomment to act for resources in all namespaces. More information in doc/clusterwide.md
|
||||
#- -cluster-wide
|
||||
env:
|
||||
- name: MY_POD_NAMESPACE
|
||||
valueFrom:
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
apiVersion: "etcd.coreos.com/v1beta1"
|
||||
kind: "Cluster"
|
||||
apiVersion: "etcd.database.coreos.com/v1beta2"
|
||||
kind: "EtcdCluster"
|
||||
metadata:
|
||||
name: "example-etcd-cluster"
|
||||
## Adding this annotation make this cluster managed by clusterwide operators
|
||||
## namespaced operators ignore it
|
||||
# annotations:
|
||||
# etcd.database.coreos.com/scope: clusterwide
|
||||
spec:
|
||||
size: 3
|
||||
version: "3.1.8"
|
||||
version: "3.2.13"
|
||||
|
||||
|
|
|
@ -4,12 +4,6 @@ echo "installing etcd operator"
|
|||
kubectl create -f manifests/deployment.yaml
|
||||
kubectl rollout status -f manifests/deployment.yaml
|
||||
|
||||
until kubectl get thirdpartyresource cluster.etcd.coreos.com
|
||||
do
|
||||
echo "waiting for operator"
|
||||
sleep 2
|
||||
done
|
||||
|
||||
echo "pausing for 10 seconds for operator to settle"
|
||||
sleep 10
|
||||
|
||||
|
@ -19,9 +13,4 @@ echo "installing etcd cluster service"
|
|||
kubectl create -f manifests/service.json
|
||||
|
||||
echo "waiting for etcd cluster to turnup"
|
||||
|
||||
until kubectl get pod example-etcd-cluster-0002
|
||||
do
|
||||
echo "waiting for etcd cluster to turnup"
|
||||
sleep 2
|
||||
done
|
||||
sleep 10
|
||||
|
|
Загрузка…
Ссылка в новой задаче