diff --git a/magnum/drivers/common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh b/magnum/drivers/common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh index 3e3038ee0f..9a9eba3d3c 100644 --- a/magnum/drivers/common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh +++ b/magnum/drivers/common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh @@ -292,7 +292,7 @@ spec: command: - /bin/openstack-cloud-controller-manager - --v=2 - - --cloud-config=/etc/kubernetes/cloud-config + - --cloud-config=/etc/kubernetes/cloud-config-occm - --cluster-name=${CLUSTER_UUID} - --use-service-account-credentials=true - --bind-address=127.0.0.1 diff --git a/magnum/drivers/common/templates/kubernetes/fragments/write-heat-params-master.yaml b/magnum/drivers/common/templates/kubernetes/fragments/write-heat-params-master.yaml index dd98cba9c6..1cbfd58e1e 100644 --- a/magnum/drivers/common/templates/kubernetes/fragments/write-heat-params-master.yaml +++ b/magnum/drivers/common/templates/kubernetes/fragments/write-heat-params-master.yaml @@ -29,6 +29,7 @@ write_files: ETCD_DISCOVERY_URL="$ETCD_DISCOVERY_URL" USERNAME="$USERNAME" PASSWORD="$PASSWORD" + CLUSTER_NETWORK="$CLUSTER_NETWORK" CLUSTER_SUBNET="$CLUSTER_SUBNET" TLS_DISABLED="$TLS_DISABLED" KUBE_DASHBOARD_ENABLED="$KUBE_DASHBOARD_ENABLED" diff --git a/magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh b/magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh index 30a884fd3f..978003de24 100644 --- a/magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh +++ b/magnum/drivers/common/templates/kubernetes/fragments/write-kube-os-config.sh @@ -10,7 +10,7 @@ if [ -n "${TRUST_ID}" ]; then # Generate a the configuration for Kubernetes services # to talk to OpenStack Neutron and Cinder - cat > ${KUBE_OS_CLOUD_CONFIG} < $KUBE_OS_CLOUD_CONFIG # Provide optional region parameter if it's set. if [ -n "${REGION_NAME}" ]; then @@ -36,4 +38,12 @@ EOF # backwards compatibility, some apps may expect this file from previous magnum versions. cp ${KUBE_OS_CLOUD_CONFIG} /etc/kubernetes/kube_openstack_config + + # Append additional networking config to config file provided to openstack + # cloud controller manager (not supported by in-tree Cinder). + cat > ${KUBE_OS_CLOUD_CONFIG}-occm <