summaryrefslogtreecommitdiff
path: root/magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml')
-rw-r--r--magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml b/magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml
index bebc7cc..630ddaa 100644
--- a/magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml
+++ b/magnum/drivers/k8s_coreos_v1/templates/fragments/make-cert.yaml
@@ -63,6 +63,10 @@ write_files:
63 fi 63 fi
64 sans="${sans},IP:127.0.0.1" 64 sans="${sans},IP:127.0.0.1"
65 65
66 KUBE_SERVICE_IP=$(echo $PORTAL_NETWORK_CIDR | awk 'BEGIN{FS="[./]"; OFS="."}{print $1,$2,$3,$4 + 1}')
67
68 sans="${sans},IP:${KUBE_SERVICE_IP}"
69
66 cert_conf_dir=${KUBE_CERTS_PATH}/conf 70 cert_conf_dir=${KUBE_CERTS_PATH}/conf
67 71
68 mkdir -p ${cert_conf_dir} 72 mkdir -p ${cert_conf_dir}