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/15 12:41] val [Настройка доступа к Insecure Private Registry] |
система_kubernetes [2022/07/20 17:01] val [Service] |
||
---|---|---|---|
Line 261: | Line 261: | ||
- 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 270: | Line 271: | ||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | ||
my-webd-svc NodePort 10.102.135.146 <none> 80:30350/TCP 18h | my-webd-svc NodePort 10.102.135.146 <none> 80:30350/TCP 18h | ||
+ | |||
+ | $ kubectl describe svc my-webd -n my-ns | ||
student@node3:~$ minikube service my-webd -n my-ns --url | student@node3:~$ minikube service my-webd -n my-ns --url | ||
Line 310: | Line 313: | ||
$ kubectl get ingress -n my-ns | $ kubectl get ingress -n my-ns | ||
+ | Напиши, что тут? | ||
root@gate.corp13.un:~# host webd | root@gate.corp13.un:~# host webd |