making service IP a variable

pull/368/head
Fred Hsu 2018-06-26 18:34:26 -07:00
parent 5208cab72e
commit 97334c48e0
1 changed files with 3 additions and 1 deletions

View File

@ -327,11 +327,13 @@ for i in 0 1 2; do
--format 'value(networkInterfaces[0].networkIP)');
done
API_SERVER_SERVICE_IP=10.32.0.1
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-hostname=10.32.0.1,${CONTROLLER_0},${CONTROLLER_1},${CONTROLLER_2},${KUBERNETES_PUBLIC_ADDRESS},127.0.0.1,kubernetes.default \
-hostname=${API_SERVER_SERVICE_IP},${CONTROLLER_0},${CONTROLLER_1},${CONTROLLER_2},${KUBERNETES_PUBLIC_ADDRESS},127.0.0.1,kubernetes.default \
-profile=kubernetes \
kubernetes-csr.json | cfssljson -bare kubernetes