Skip to content

Commit

Permalink
try to operate against localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Feb 24, 2020
1 parent 013bcf8 commit 83443c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/data/bootstrap/files/usr/local/bin/bootkube.sh.template
Expand Up @@ -113,7 +113,7 @@ bootkube_podman_run \
if [ ! -z "$CLUSTER_ETCD_OPERATOR_MANAGED" ]
then
# TODO: host-etcd endpoint rendered by cluster-etcd-operator
BOOTSTRAP_IP=$(hostname -I | awk '{ print $1 }')
BOOTSTRAP_IP=localhost
ETCD_ENDPOINTS=https://"${BOOTSTRAP_IP}":2379
if [ ! -f etcd-bootstrap.done ]
then
Expand All @@ -134,7 +134,7 @@ then
--config-output-file=/assets/etcd-bootstrap/config \
--cluster-config-file=/assets/manifests/cluster-network-02-config.yml

sed -i "s/__BOOTSTRAP_IP__/${BOOTSTRAP_IP}/" /opt/openshift/manifests/etcd-host-service-endpoints.yaml
sed -i "s/__BOOTSTRAP_IP__/192.0.2.200/" /opt/openshift/manifests/etcd-host-service-endpoints.yaml

cp etcd-bootstrap/manifests/* manifests/
cp etcd-bootstrap/bootstrap-manifests/etcd-member-pod.yaml /etc/kubernetes/manifests/
Expand Down

0 comments on commit 83443c8

Please sign in to comment.