From 97334c48e09013e0c9f2dac6d859d121bcd827ad Mon Sep 17 00:00:00 2001 From: Fred Hsu Date: Tue, 26 Jun 2018 18:34:26 -0700 Subject: [PATCH] making service IP a variable --- docs/04-certificate-authority.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/04-certificate-authority.md b/docs/04-certificate-authority.md index 28b21b6..836db54 100644 --- a/docs/04-certificate-authority.md +++ b/docs/04-certificate-authority.md @@ -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