k8s安装nginx进阶版
# 1.创建nginx的configMap
[root@master ~]# kubectl create configmap confnginx --from-file nginx.conf
configmap/confnginx created
# 查看是否创建成功
[root@master ~]# kubectl get configmap
NAME DATA AGE
confnginx 1 23s
redis-conf 1 23h
[root@master ~]#
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8