Skip to content

Commit

Permalink
examples: Fix up standalone-etcd.yaml
Browse files Browse the repository at this point in the history
This YAML was a bit out-of-date, using older etcd and v1beta1 StatefulSet.
Give it a refresh.

Used by:

  ./contrib/scripts/kind.sh
  kubectl apply -f examples/kubernetes/addons/etcd/standalone-etcd.yaml
  kubectl get pods
  # Wait for the ETCD pod to become ready
  cat <<EOF > cilium-etcd.yaml
  identityAllocationMode: kvstore
  nativeRoutingCIDR: "172.16.0.0/12"
  etcd:
    enabled: true
    endpoints:
    - http://$(k get pod etcd-cilium-0 -o json | jq -r '.status.podIP'):32379
  EOF
  helm install cilium cilium/cilium --version 1.9.10 \
    --namespace kube-system -f cilium-etcd.yaml

Signed-off-by: Joe Stringer <joe@cilium.io>
  • Loading branch information
joestringer authored and christarazi committed Sep 15, 2021
1 parent 339baa8 commit 0a20b59
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/kubernetes/addons/etcd/standalone-etcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,26 @@ spec:
selector:
component: "cilium-etcd"
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: "etcd-cilium"
labels:
component: "cilium-etcd"
spec:
selector:
matchLabels:
component: "cilium-etcd"
serviceName: "cilium-etcd"
template:
metadata:
name: "etcd"
labels:
component: "cilium-etcd"
spec:
tolerations:
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
hostNetwork: true
affinity:
podAntiAffinity:
Expand All @@ -58,7 +64,7 @@ spec:
topologyKey: "kubernetes.io/hostname"
containers:
- name: "etcd"
image: "quay.io/coreos/etcd:v3.3.2"
image: "quay.io/coreos/etcd:v3.3.25"
env:
- name: HOSTNAME_IP
valueFrom:
Expand Down

0 comments on commit 0a20b59

Please sign in to comment.