perf: 使用镜像 nginx:alpine 替代 nginx

pull/552/head
waiting 2019-04-26 17:01:38 +08:00 committed by jmgao
parent 149e84209e
commit 5249281d52
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ $ kubectl apply -f /etc/ansible/manifests/ingress/traefik/tls/traefik-controller
``` bash ``` bash
# 创建示例应用 # 创建示例应用
$ kubectl run test-hello --image=nginx --port=80 --expose $ kubectl run test-hello --image=nginx:alpine --port=80 --expose
# hello-tls-ingress 示例 # hello-tls-ingress 示例
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress

View File

@ -47,7 +47,7 @@ traefik-ingress-service NodePort 10.68.69.170 <none> 80:23456/TCP,8
+ 首先创建测试用K8S应用并且该应用服务不用nodePort暴露而是用ingress方式让外部访问 + 首先创建测试用K8S应用并且该应用服务不用nodePort暴露而是用ingress方式让外部访问
``` bash ``` 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 # kubectl get deploy test-hello
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE