mirror of https://github.com/easzlab/kubeasz.git
perf: 使用镜像 nginx:alpine 替代 nginx
parent
149e84209e
commit
5249281d52
|
@ -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
|
||||
|
|
|
@ -47,7 +47,7 @@ traefik-ingress-service NodePort 10.68.69.170 <none> 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
|
||||
|
|
Loading…
Reference in New Issue