Answers for "kubernetes selector"

Go
0

using kubernetes field-selector

kubectl get pods --field-selector status.phase=Running
Posted by: Guest on June-19-2020
0

kubernetes selector

A Kubernetes selector allows us to select or exclude groups of k8 
resources based on key/value pairs called labels.

In the below exampĺe, resource created with file B will use/modify
- in some way not yet defined here - the resources created with
file A: 

my-file-A.yml
...
metadata:
  name: label-demo
  labels:
    environment: production
    app: nginx
...

---
my-file-B.yml
...
spec:
	selector:
    	environment:production
Posted by: Guest on December-12-2021

Browse Popular Code Answers by Language