NAME CHART VERSION APP VERSION DESCRIPTION bitnami/nginx 9.8.0 1.21.6 NGINX Open Source is a web server that can be a... bitnami/nginx-ingress-controller 9.1.7 1.1.1 NGINX Ingress Controller is an Ingress controll... bitnami/nginx-intel 0.1.4 0.4.7 NGINX Open Source for Intel is a lightweight se... stable/nginx-ingress 0.9.5 0.10.2 An nginx Ingress controller that uses ConfigMap... stable/nginx-lego 0.3.1 Chart for nginx-ingress-controller and kube-lego bitnami/kong 5.0.2 2.7.0 Kong is a scalable, open source API layer (aka ... stable/gcloud-endpoints 0.1.0 Develop, deploy, protect and monitor your APIs ...
helm search repo kubernetes-dashboard NAME CHART VERSION APP VERSION DESCRIPTION stable/kubernetes-dashboard 0.6.0 1.8.3 General-purpose web UI for Kubernetes clusters
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION mynginx default 1 2022-06-01 17:29:42.587416 +0800 CST deployed nginx-9.8.0 1.21.6
或者
1 2 3 4
helm ls -A NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION kubernetes-dashboard kube-system 1 2022-03-01 20:31:13.287929871 +0800 CST deployed kubernetes-dashboard-0.6.0 1.8.3
NAME: mynginx LAST DEPLOYED: Wed Jun 1 23:28:47 2022 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: CHART NAME: nginx CHART VERSION: 9.8.0 APP VERSION: 1.21.6
** Please be patient while the chart is being deployed **
NGINX can be accessed through the following DNS name from within your cluster:
mynginx.default.svc.cluster.local (port 80)
To access NGINX from outside the cluster, follow the steps below:
1. Get the NGINX URL by running these commands:
NOTE: It may take a few minutes for the LoadBalancer IP to be available. Watch the status with: 'kubectl get svc --namespace default -w mynginx'
export SERVICE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].port}" services mynginx) export SERVICE_IP=$(kubectl get svc --namespace default mynginx -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo "http://${SERVICE_IP}:${SERVICE_PORT}"
可以看到pod已经启动
1 2 3 4
kubectl get pod -A NAMESPACE NAME READY STATUS RESTARTS AGE default mynginx-5998cdd48b-x59wz 1/1 Running 0 3m29s
查看service
1 2 3 4
kubectl get svc --namespace default mynginx NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE mynginx LoadBalancer 10.99.159.33 localhost 80:31833/TCP 3m57s
kubectl get svc -A NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 17d default mynginx LoadBalancer 10.111.232.86 localhost 18000:32395/TCP 3m58s