Install

ansible@ansible02:~/rancherHA_backup$ kubectl get nodes NAME STATUS ROLES AGE VERSION rancher00 Ready controlplane,etcd,worker 10m v1.19.7 rancher01 Ready controlplane,etcd,worker 10m v1.19.7 rancher02 Ready controlplane,etcd,worker 10m v1.19.7 ansible@ansible02:~/rancherHA_backup$ kubectl create namespace cattle-system namespace/cattle-system created ansible@ansible02:~/rancherHA_backup$ kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.4/cert-manager.crds.yaml customresourcedefinition.apiextensions.k8s.io/certificaterequests.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/certificates.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/challenges.acme.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/clusterissuers.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/issuers.cert-manager.io created customresourcedefinition.apiextensions.k8s.io/orders.acme.cert-manager.io created ansible@ansible02:~/rancherHA_backup$ kubectl create namespace cert-manager namespace/cert-manager created ansible@ansible02:~/rancherHA_backup$ helm repo add jetstack https://charts.jetstack.io "jetstack" already exists with the same configuration, skipping ansible@ansible02:~/rancherHA_backup$ helm repo update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "democratic-csi" chart repository ...Successfully got an update from the "rancher-latest" chart repository ...Successfully got an update from the "jetstack" chart repository Update Complete. ⎈Happy Helming!⎈ ansible@ansible02:~/rancherHA_backup$ helm install cert-manager jetstack/cert-manager --namespace cert-manager --version v1.0.4 NAME: cert-manager LAST DEPLOYED: Sat Feb 6 14:17:08 2021 NAMESPACE: cert-manager STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: cert-manager has been deployed successfully! In order to begin issuing certificates, you will need to set up a ClusterIssuer or Issuer resource (for example, by creating a 'letsencrypt-staging' issuer). More information on the different types of issuers and how to configure them can be found in our documentation: https://cert-manager.io/docs/configuration/ For information on how to configure cert-manager to automatically provision Certificates for Ingress resources, take a look at the `ingress-shim` documentation: ansible@ansible02:~/rancherHA_backup$ kubectl get pods --namespace cert-manager NAME READY STATUS RESTARTS AGE cert-manager-6d87886d5c-6mld5 1/1 Running 0 65s cert-manager-cainjector-55db655cd8-bt5p7 1/1 Running 0 65s cert-manager-webhook-6846f844ff-5mxrq 1/1 Running 0 65s https://cert-manager.io/docs/usage/ingress/ ansible@ansible02:~/rancherHA_backup$ helm install rancher rancher-latest/rancher --namespace cattle-system --set hostname=rancherweb.jdnet.biz --set ingress.tls.source=letsEncrypt --set [email protected] NAME: rancher LAST DEPLOYED: Sat Feb 6 14:19:39 2021 NAMESPACE: cattle-system STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: Rancher Server has been installed. NOTE: Rancher may take several minutes to fully initialize. Please standby while Certificates are being issued and Ingress comes up. Check out our docs at https://rancher.com/docs/rancher/v2.x/en/ Browse to https://rancherweb.jdnet.biz Happy Containering! ansible@ansible02:~/rancherHA_backup$ kubectl -n cattle-system rollout status deploy/rancher Waiting for deployment "rancher" rollout to finish: 0 of 3 updated replicas are available... Waiting for deployment "rancher" rollout to finish: 1 of 3 updated replicas are available... deployment "rancher" successfully rolled out

upgrade

ansible@ansible02:~$ export KUBECONFIG=kube_config_rancher-cluster.yml ansible@ansible02:~$ kubectl get nodes NAME STATUS ROLES AGE VERSION rancher00 Ready controlplane,etcd,worker 28d v1.17.6 rancher01 Ready controlplane,etcd,worker 28d v1.17.6 rancher02 Ready controlplane,etcd,worker 28d v1.17.6 ansible@ansible02:~$ helm repo update Hang tight while we grab the latest from your chart repositories... ...Successfully got an update from the "rancher-latest" chart repository ...Successfully got an update from the "jetstack" chart repository Update Complete. ⎈ Happy Helming!⎈ ansible@ansible02:~$ helm repo list NAME URL rancher-latest https://releases.rancher.com/server-charts/latest jetstack https://charts.jetstack.io ansible@ansible02:~$ helm fetch rancher-latest/rancher ansible@ansible02:~$ ls -l rancher-2.4.5.tgz -rw-r--r-- 1 ansible ansible 8710 Jun 30 20:26 rancher-2.4.5.tgz ansible@ansible02:~$ helm upgrade rancher rancher-latest/rancher \ > --namespace cattle-system \ > --set hostname=rancherweb.jdnet.biz ansible@ansible02:~$ kubectl -n cattle-system rollout status deploy/rancher deployment "rancher" successfully rolled out ansible@ansible02:~$ kubectl -n cattle-system get deploy rancher NAME READY UP-TO-DATE AVAILABLE AGE rancher 3/3 3 3 21d

kubernetes clusterのサイジングについて

freenas-provisioner

democratic-csi