Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quotes in kubeadm config files #224

Merged
merged 1 commit into from
Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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