Skip to content

Commit

Permalink
Merge pull request #1429 from retroflexer/for-easy-ectdctl-setup-env
Browse files Browse the repository at this point in the history
Bug 1795696: templates: etcd-member: setup environment variables needed for easy etcdctl execution
  • Loading branch information
openshift-merge-robot authored Feb 10, 2020
2 parents ac44c3f + 144c710 commit d9dec38
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,21 @@ contents:
mountPath: /var/lib/etcd/
- name: conf
mountPath: /etc/etcd/
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -c
- echo 'export ETCDCTL_CACERT=/etc/ssl/etcd/ca.crt ETCDCTL_CERT=$(find /etc/ssl/ -name *peer*crt) ETCDCTL_KEY=$(find /etc/ssl/ -name *peer*key)' >> /root/.profile
env:
- name: ETCDCTL_API
value: "3"
- name: ETCD_DATA_DIR
value: "/var/lib/etcd"
- name: ENV
value: "/root/.profile"
- name: ETCD_NAME
valueFrom:
fieldRef:
Expand Down

0 comments on commit d9dec38

Please sign in to comment.