Skip to content

Commit

Permalink
Add quotes in kubeadm config files (#224)
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vince@vincepri.com>
  • Loading branch information
vincepri authored and chuckha committed Oct 12, 2018
1 parent cffb083 commit 13c2794
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions scripts/setup-k8s-master.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,27 @@ cat >/tmp/kubeadm.yaml <<EOF
---
apiVersion: kubeadm.k8s.io/v1alpha2
kind: MasterConfiguration
kubernetesVersion: $(cat /etc/kubernetes_community_ami_version)
kubernetesVersion: "$(cat /etc/kubernetes_community_ami_version)"
api:
controlPlaneEndpoint: ${LB_DNS}:443
controlPlaneEndpoint: "${LB_DNS}:443"
apiServerCertSANs:
- ${LB_IPV4}
- "${LB_IPV4}"
apiServerExtraArgs:
cloud-provider: aws
cloud-provider: "aws"
nodeRegistration:
name: ${HOSTNAME}
name: "${HOSTNAME}"
kubeletExtraArgs:
cloud-provider: aws
cloud-provider: "aws"
bootstrapTokens:
- groups:
- system:bootstrappers:kubeadm:default-node-token
token: {{ClusterToken}}
ttl: 0s
- "system:bootstrappers:kubeadm:default-node-token"
token: "{{ClusterToken}}"
ttl: "0s"
usages:
- signing
- authentication
controllerManagerExtraArgs:
cloud-provider: aws
cloud-provider: "aws"
allocate-node-cidrs: "false"
EOF

Expand Down
6 changes: 3 additions & 3 deletions scripts/setup-k8s-node.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ cat >/tmp/kubeadm-node.yaml <<EOF
---
apiVersion: kubeadm.k8s.io/v1alpha2
kind: NodeConfiguration
token: {{ClusterToken}}
discoveryFile: /tmp/cluster-info.yaml
token: "{{ClusterToken}}"
discoveryFile: "/tmp/cluster-info.yaml"
nodeRegistration:
name: ${HOSTNAME}
name: "${HOSTNAME}"
kubeletExtraArgs:
cloud-provider: aws
EOF
Expand Down

0 comments on commit 13c2794

Please sign in to comment.