missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec

1 개요[ | ]

missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec
yaml
Copy
apiVersion: apps/v1
kind: Deployment
metadata:
  name: graylog
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: graylog
    spec:
      containers:
      - name: graylog
        image: graylog/graylog
yaml
Copy
apiVersion: apps/v1
kind: Deployment
metadata:
  name: graylog
spec:
  replicas: 1
  selector:
    matchLabels:
      app: graylog
  template:
    metadata:
      labels:
        app: graylog
    spec:
      containers:
      - name: graylog
        image: graylog/graylog

2 같이 보기[ | ]

3 참고[ | ]