摘要: 一. 创建 Pods 1 根据YAML配置创建 Pods 配置文件 pod.yaml 内容如下 apiVersion: v1 kind: Pod metadata: name: happypanda spec: containers: - name: nginx image: nginx 2 运行命 阅读全文
posted @ 2022-02-08 14:51 呱呱二号 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 一. 创建命名空间的两种方式 方式一 创建命名空间 kubectl create namespace dev-service1 方式二 2.1 根据YAML配置创建命名空间 配置文件 test-namespace.yaml 内容如下 kind: Namespace apiVersion: v1 me 阅读全文
posted @ 2022-02-08 14:37 呱呱二号 阅读(92) 评论(0) 推荐(0) 编辑