Kubernetes 使用 PodPreset 注入信息到 Pods_哎_小羊的博客
-07T02:10:31Z 接下来,我们来创建 Pod Yaml 资源文件。 $ vim pod-busybox-hwy.yaml apiVersion: v1 kind: Pod metadata: name: busybox-hwy namespace: wanyang3 labels: app: busybox-hwy role: busybox-hwy spec: containers: - name: busybox-hwy image: busybox:latest command: ["sleep", "60000"] 注意:这里我以 busybox 容器来测试,这里 labels role: busybox-hwy 要跟上边 PodPreset selector...阅读全文