k8s控制器

apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: myapp-ds
  #labels:
  #  app: myapp
spec:
  selector:
    matchLabels:
      app: myapp
  template: 
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myappc
        image: ikubernetes/myapp:v1
        ports:
        - containerPort: 80
      nodeSelector:
        app: myapp

 

你可能感兴趣的:(k8s控制器)