This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
система_kubernetes [2022/07/19 12:51] val [Service] |
система_kubernetes [2022/09/11 20:28] val [Развертывание] |
||
---|---|---|---|
Line 101: | Line 101: | ||
<code> | <code> | ||
+ | root@nodeN:~# apt install apt-transport-https curl | ||
+ | root@nodeN:~# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add | ||
+ | root@nodeN:~# apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main" | ||
+ | root@nodeN:~# apt install kubeadm kubelet kubectl kubernetes-cni | ||
+ | root@nodeN:~# swapoff -a | ||
+ | root@nodeN:~# cat /etc/fstab | ||
+ | </code><code> | ||
... | ... | ||
- | root@node1:~# kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.13.210 | + | #/swap.img ... |
+ | ... | ||
+ | </code><code> | ||
+ | root@node1:~# kubeadm init --pod-network-cidr=10.244.0.0/16 --apiserver-advertise-address=192.168.13.201 | ||
... | ... | ||
student@node1:~$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | student@node1:~$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml | ||
... | ... | ||
student@node1:~$ kubectl get pod -o wide --all-namespaces | student@node1:~$ kubectl get pod -o wide --all-namespaces | ||
+ | |||
+ | student@node2_3:~$ kubeadm join 192.168.13.201:6443 --token zyj3q3.a7wtyb0u2uugnvlr \ | ||
+ | --discovery-token-ca-cert-hash sha256:2444ee53a844bce1b497b18bf93c0a0c0694233cb2e6b4e0be0fb0ee2c74925e | ||
student@node1:~$ kubectl get nodes -o wide | student@node1:~$ kubectl get nodes -o wide | ||
Line 113: | Line 126: | ||
==== Настройка доступа к Insecure Private Registry ==== | ==== Настройка доступа к Insecure Private Registry ==== | ||
- | * [[https://github.com/containerd/containerd/issues/4938| Unable to pull image from insecure registry, http: server gave HTTP response to HTTPS client #4938 ]] | + | * [[https://github.com/containerd/containerd/issues/4938|Unable to pull image from insecure registry, http: server gave HTTP response to HTTPS client #4938]] |
+ | * [[https://github.com/containerd/containerd/issues/3847|Containerd cannot pull image from insecure registry #3847]] | ||
* [[https://mrzik.medium.com/how-to-configure-private-registry-for-kubernetes-cluster-running-with-containerd-cf74697fa382|How to Configure Private Registry for Kubernetes cluster running with containerd]] | * [[https://mrzik.medium.com/how-to-configure-private-registry-for-kubernetes-cluster-running-with-containerd-cf74697fa382|How to Configure Private Registry for Kubernetes cluster running with containerd]] | ||
- | * [[https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header| containerd/docs/PLUGINS.md migrate config v1 to v2]] | + | * [[https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header|containerd/docs/PLUGINS.md migrate config v1 to v2]] |
* Docker [[Технология Docker#Insecure Private Registry]] | * Docker [[Технология Docker#Insecure Private Registry]] | ||
Line 261: | Line 276: | ||
- protocol: TCP | - protocol: TCP | ||
port: 80 | port: 80 | ||
- | targetPort: 80 | + | # nodePort: 30111 |
- | status: | + | # targetPort: 80 |
- | loadBalancer: {} | + | #status: |
+ | # loadBalancer: {} | ||
</code><code> | </code><code> | ||
$ kubectl apply -f my-webd-service.yaml | $ kubectl apply -f my-webd-service.yaml | ||
Line 312: | Line 328: | ||
$ kubectl get ingress -n my-ns | $ kubectl get ingress -n my-ns | ||
+ | Напиши, что тут? | ||
root@gate.corp13.un:~# host webd | root@gate.corp13.un:~# host webd |