Skip to content

Commit

Permalink
bindata/bootkube/bootstrap-manifests: add etcdctl container to bootst…
Browse files Browse the repository at this point in the history
…rap-etcd

Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
  • Loading branch information
hexfusion committed Sep 29, 2021
1 parent f6906d6 commit 72aba09
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions bindata/bootkube/bootstrap-manifests/etcd-member-pod.yaml
Expand Up @@ -7,6 +7,30 @@ metadata:
k8s-app: etcd
spec:
containers:
- name: etcdctl
image: {{ .Image }}
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command:
- "/bin/bash"
- "-c"
- "trap TERM INT; sleep infinity & wait"
resources:
requests:
memory: 60Mi
cpu: 10m
volumeMounts:
- name: certs
mountPath: /etc/ssl/etcd/
env:
- name: "ETCDCTL_KEY"
value: "/etc/ssl/etcd/etcd-all-certs/etcd-serving-{{ .Hostname }}.key"
- name: "ETCDCTL_CERT"
value: "/etc/ssl/etcd/etcd-all-certs/etcd-serving-{{ .Hostname }}.crt"
- name: "ETCDCTL_CACERT"
value: "/etc/ssl/etcd/ca.crt"
- name: "ETCDCTL_ENDPOINTS"
value: "https://localhost:2379"
- name: etcd
image: {{ .Image }}
command:
Expand Down Expand Up @@ -39,8 +63,6 @@ spec:
securityContext:
privileged: true
volumeMounts:
- name: discovery
mountPath: /run/etcd/
- name: certs
mountPath: /etc/ssl/etcd/
- name: data-dir
Expand Down

0 comments on commit 72aba09

Please sign in to comment.