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
标签:ingress,kubernetes,deploy,TCP,nginx,ClusterIP 来源: https://www.cnblogs.com/liujitao79/p/15529132.html