标签:vim https open alt build proxy 执行 soft etc
参考文档: https://blog.51cto.com/11889458/2323328
git clone https://github.com/kubernetes/kubernetes.git -b release-1.17 v1.17.3
mkdir /data/soft
cd /data/soft/
wget https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz
tar zxvf go1.13.6.linux-amd64.tar.gz -C /usr/local/
vim /etc/profile
export GOROOT=/usr/local/go
export GOPATH=/usr/local/gopath
export PATH=$PATH:$GOROOT/bin
source /etc/profile
go version
vim /data/v1.17.3/staging/src/k8s.io/client-go/util/cert/cert.go
96 maxAge := time.Hour * 24 * 365 * 10 // one year self-signed certs
vim /data/v1.17.3/cmd/kubeadm/app/constants/constants.go
47 CertificateValidity = time.Hour * 24 * 365 * 10
cd /data/v1.17.3/
KUBE_BUILD_PLATFORMS=linux/amd64 make WHAT=cmd/kubeadm GOFLAGS=-v GOGCFLAGS="-N -l"
ls -l /data/v1.17.3/_output/bin/kubeadm
mv /usr/bin/kubeadm /usr/bin/kubeadm_backup
ln -s /data/v1.17.3/_output/bin/kubeadm /usr/bin/kubeadm
kubeadm reset
kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.log
rm -rf $HOME/.kube
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
cd /etc/kubernetes/pki/
openssl x509 -in front-proxy-client.crt -noout -text |grep Not
openssl x509 -in apiserver.crt -noout -text |grep Not
标签:vim https open alt build proxy 执行 soft etc
原文地址:https://www.cnblogs.com/cjwnb/p/12399217.html