diff --git a/kubeapi-server/kubeapi-server-cert.json b/kubeapi-server/kubeapi-server-cert.json deleted file mode 100644 index 4c0b788..0000000 --- a/kubeapi-server/kubeapi-server-cert.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "CN": "kubernetes", - "hosts": [ - "127.0.0.1", - "k8s-api.virtual.local", - "10.254.0.1", - "kubernetes", - "kubernetes.default", - "kubernetes.default.svc", - "kubernetes.default.svc.cluster", - "kubernetes.default.svc.cluster.local" - ], - "key": { - "algo": "rsa", - "size": 2048 - }, - "names": [ - { - "C": "CN", - "ST": "BeiJing", - "L": "BeiJing", - "O": "k8s", - "OU": "System" - } - ] -} \ No newline at end of file diff --git a/kubeapi-server/kubeapi-server.sh b/kubeapi-server/kubeapi-server.sh deleted file mode 100644 index a67269c..0000000 --- a/kubeapi-server/kubeapi-server.sh +++ /dev/null @@ -1,26 +0,0 @@ -node_IP=127.0.0.1 -arch=$(uname -i) -if [[ $arch == x86_64* ]]; then - ARCH="amd64" -elif [[ $arch == arm* ]] || [[ $arch = aarch64 ]]; then - ARCH="arm64" -fi -curl -L -O https://dl.k8s.io/v1.9.2/kubernetes-server-linux-${ARCH}.tar.gz -tar -xzvf kubernetes-server-linux-${ARCH}.tar.gz -mkdir -p /usr/k8s/bin/ -sudo cp -r kubernetes/server/bin/{kube-apiserver,kube-controller-manager,kube-scheduler} /usr/k8s/bin/ - - -cfssl gencert -ca=/etc/kubernetes/ssl/ca.pem \ - -ca-key=/etc/kubernetes/ssl/ca-key.pem \ - -config=/etc/kubernetes/ssl/ca-config.json \ - -profile=kubernetes kubeapi-server-cert.json | cfssljson -bare kubernetes - -sudo mkdir -p /etc/kubernetes/ssl/ -sudo mv kubernetes*.pem /etc/kubernetes/ssl/ - - -BOOTSTRAP_TOKEN="khFZp2U5yWIgcjl0UsWU-cmeh05PQHXB" -cat > token.csv <