This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "--- Installing Docker and kube" | |
| apt-get update && apt-get install -y apt-transport-https curl zip unzip | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
| deb https://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| apt-get update | |
| apt-get install -y docker.io kubeadm kubelet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kubeadm.k8s.io/v1beta1 | |
| kind: JoinConfiguration | |
| nodeRegistration: | |
| kubeletExtraArgs: | |
| enable-controller-attach-detach: "false" | |
| node-labels: "node-type=rook" | |
| discovery: | |
| bootstrapToken: | |
| apiServerEndpoint: ${K8S_API_ENDPOINT_INTERNAL} | |
| token: ${KUBEADM_TOKEN} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| CERTS_DIR=${1:-$LOCAL_CERTS_DIR} | |
| CA="${CERTS_DIR}"/ca.crt | |
| CA_KEY="${CERTS_DIR}"/ca.key | |
| if [[ ! -f ${CA} || ! -f ${CA_KEY} ]]; then | |
| echo "Error: CA files ${CA} ${CA_KEY} are missing " | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "--- Installing Docker and kube" | |
| K8S_VERSION=${K8S_VERSION:-1.13.2} | |
| apt-get update && apt-get install -y apt-transport-https curl zip unzip | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
| cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
| deb https://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| clusters: | |
| - cluster: | |
| certificate-authority-data: ${CA_DATA_B64} | |
| server: https://${K8S_API_ENDPOINT}:6443 | |
| name: ${K8S_CLUSTER_NAME} | |
| contexts: | |
| - context: | |
| cluster: ${K8S_CLUSTER_NAME} | |
| user: ${K8S_CLUSTER_NAME}-admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kubeadm.k8s.io/v1beta1 | |
| kind: InitConfiguration | |
| bootstrapTokens: | |
| - token: "${KUBEADM_TOKEN}" | |
| description: "default kubeadm bootstrap token" | |
| ttl: "0" | |
| localAPIEndpoint: | |
| advertiseAddress: ${K8S_API_ADDVERTISE_IP_1} | |
| bindPort: 6443 | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: kubeadm.k8s.io/v1beta1 | |
| kind: InitConfiguration | |
| bootstrapTokens: | |
| - token: "ghr903.k455adquq3ustxob" | |
| description: "default kubeadm bootstrap token" | |
| ttl: "0" | |
| localAPIEndpoint: | |
| advertiseAddress: 172.16.100.10 | |
| bindPort: 6443 | |
| --- |