摘要: 多行字符串可以使用|保留换行符,也可以使用>折叠换行。 this: | Foo Bar that: > Foo Bar 转为 JavaScript 代码如下。 { this: 'Foo\nBar\n', that: 'Foo Bar\n' } +表示保留文字块末尾的换行,-表示删除字符串末尾的换行。 阅读全文
posted @ 2021-10-19 14:35 paul_hch 阅读(695) 评论(0) 推荐(0)
摘要: ConfigMap 实现 nginx 容器的配置文件管理 1、在k8s集群拉起一个nginx的pod,通过默认80去访问。 编写nginx的yaml文件。 [root@k8s-master ~]# cat my-nginx.yaml apiVersion: apps/v1kind: Deployme 阅读全文
posted @ 2021-10-19 14:28 paul_hch 阅读(3448) 评论(0) 推荐(0)