DengQN·一个普通程序员;
k8s Deployment 格式
2023-09-17 16:30 114
#k8s#docker

来自文档k8s-tutorials.pages.dev

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hellok8s-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: hellok8s
  template:
    metadata:
      labels:
        app: hellok8s
    spec:
      containers:
        - image: guangzhengli/hellok8s:v2
          name: hellok8s-container

#sss@