diff --git a/docs/guide/ingress-tls.md b/docs/guide/ingress-tls.md index 5e44173..cff9178 100644 --- a/docs/guide/ingress-tls.md +++ b/docs/guide/ingress-tls.md @@ -26,7 +26,7 @@ $ kubectl apply -f /etc/ansible/manifests/ingress/traefik/tls/traefik-controller ``` bash # 创建示例应用 -$ kubectl run test-hello --image=nginx --port=80 --expose +$ kubectl run test-hello --image=nginx:alpine --port=80 --expose # hello-tls-ingress 示例 apiVersion: extensions/v1beta1 kind: Ingress diff --git a/docs/guide/ingress.md b/docs/guide/ingress.md index 8bd5c0f..d3e815a 100644 --- a/docs/guide/ingress.md +++ b/docs/guide/ingress.md @@ -47,7 +47,7 @@ traefik-ingress-service NodePort 10.68.69.170 80:23456/TCP,8 + 首先创建测试用K8S应用,并且该应用服务不用nodePort暴露,而是用ingress方式让外部访问 ``` bash -kubectl run test-hello --image=nginx --expose --port=80 +kubectl run test-hello --image=nginx:alpine --expose --port=80 ## # kubectl get deploy test-hello NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE