using kubernetes field-selector
kubectl get pods --field-selector status.phase=Running
using kubernetes field-selector
kubectl get pods --field-selector status.phase=Running
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us