Skip to content

How do I run kubectl apply-f using the API #1168

@moluzhui

Description

@moluzhui

I tried using the Kubernetes API python to execute the kubect apply command to deploy and update resources

the kubectl command is as follows:

kubectl apply -f export

export is a folder containing multiple yaml files, which is generated by kompose convert -o export

I only found an alternative API for kubectl create, but I didn't find apply

How do I implement kubectl apply to create resources and possible subsequent updates

If you know, please let me know. thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.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