Skip to content

Commit

Permalink
Merge pull request #22 from kubicorn/do-ubuntu-clustername
Browse files Browse the repository at this point in the history
do: set cluster name for ubuntu clusters
  • Loading branch information
xmudrii authored Jul 30, 2018
2 parents b4dc17e + ba1bc6b commit b377b65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions digitalocean_k8s_ubuntu_16.04_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ systemctl daemon-reload
systemctl restart kubelet

# Parse kubicorn configuration file.
CLUSTER_NAME=$(cat /etc/kubicorn/cluster.json | jq -r '.clusterAPI.metadata.name')
TOKEN=$(cat /etc/kubicorn/cluster.json | jq -r '.clusterAPI.spec.providerConfig' | jq -r '.values.itemMap.INJECTEDTOKEN')
PORT=$(cat /etc/kubicorn/cluster.json | jq -r '.clusterAPI.spec.providerConfig' | jq -r '.values.itemMap.INJECTEDPORT | tonumber')

Expand All @@ -64,6 +65,7 @@ kind: MasterConfiguration
token: ${TOKEN}
kubernetesVersion: ${KUBERNETES_VERSION}
nodeName: ${HOSTNAME}
clusterName: ${CLUSTER_NAME}
api:
advertiseAddress: ${PUBLICIP}
bindPort: ${PORT}
Expand Down

0 comments on commit b377b65

Please sign in to comment.