kubernetes 安装 ingress-nginx

2021/11/10 7:12:42

本文主要是介绍kubernetes 安装 ingress-nginx,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

1. 安装

curl -k https://raw.fastgit.org/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/cloud/deploy.yaml -o /tmp/deploy.yaml 

修改 deploy.yaml 内容
image: 192.168.100.198:5000/ingress-nginx/controller:v1.0.4
image: 192.168.100.198:5000/ingress-nginx/kube-webhook-certgen:v1.1.1

kubectl apply -f /tmp/deploy.yaml 

2. 查看

# kubectl get service --all-namespaces
NAMESPACE              NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
default                kubernetes                           ClusterIP      10.96.0.1        <none>        443/TCP                      23h
ingress-nginx          ingress-nginx-controller             LoadBalancer   10.98.197.228    <pending>     80:30802/TCP,443:32146/TCP   10m
ingress-nginx          ingress-nginx-controller-admission   ClusterIP      10.106.207.197   <none>        443/TCP                      10m
kube-system            kube-dns                             ClusterIP      10.96.0.10       <none>        53/UDP,53/TCP,9153/TCP       23h
kubernetes-dashboard   dashboard-metrics-scraper            ClusterIP      10.97.175.144    <none>        8000/TCP                     6m32s
kubernetes-dashboard   kubernetes-dashboard                 NodePort       10.108.190.171   <none>        443:30000/TCP                6m32s


这篇关于kubernetes 安装 ingress-nginx的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程