summaryrefslogtreecommitdiff
path: root/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh
diff options
context:
space:
mode:
Diffstat (limited to 'magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh')
-rw-r--r--magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh b/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh
index 452f984..30e9011 100644
--- a/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh
+++ b/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh
@@ -46,6 +46,10 @@ if [[ -n "${MASTER_HOSTNAME}" ]]; then
46fi 46fi
47sans="${sans},IP:127.0.0.1" 47sans="${sans},IP:127.0.0.1"
48 48
49KUBE_SERVICE_IP=$(echo $PORTAL_NETWORK_CIDR | awk 'BEGIN{FS="[./]"; OFS="."}{print $1,$2,$3,$4 + 1}')
50
51sans="${sans},IP:${KUBE_SERVICE_IP}"
52
49cert_dir=/srv/kubernetes 53cert_dir=/srv/kubernetes
50cert_conf_dir=${cert_dir}/conf 54cert_conf_dir=${cert_dir}/conf
51 55