In the below deployment yml, the deployment itself has a label "app: hello". What would happen if I delete that line (line 6)?
I understand the functional need for pods to be labeled, because then the deployment can reference those pods by labels. In the below example, that means that I understand why lines 11-12 and 16-17 exist. But that doesn't answer why the deployment should be labeled.
apiVersion: apps/v1 kind: Deployment metadata: name: helloweb labels: app: hello spec: replicas: 1 selector: matchLabels: app: hello tier: web template: metadata: labels: app: hello tier: web spec: containers: - name: hello-app image: registry.gitlab.com/itential/cloud-team/applications/hello-app ports: - containerPort: 8080 imagePullSecrets: - name: gitlab-reg