Thanks to visit codestin.com
Credit goes to github.com

Skip to content

get all yamls based on a label selector #879

@mathnitin

Description

@mathnitin

I am looking for the equivalent apis in python kubernetes client. Can anyone please provide any pointers.

  1. kubectl get all --all-namespaces --selector name=foo -o yaml --export > foo.yaml
  2. kubectl delete -f foo.yaml
    ... (Modify the yaml file)
  3. kubectl create -f foo.yaml. <-- For this i did find utils.create_from_yaml

Metadata

Metadata

Assignees

Labels

lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions