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

Skip to content

AttributeError: 'NetworkingV1Api' object has no attribute 'create_namespaced_ingress' #1632

Closed
@XS170202106505

Description

@XS170202106505

AttributeError: 'NetworkingV1Api' object has no attribute 'create_namespaced_ingress'

def main():

with open(path.join(path.dirname(__file__), "/data/k8s-client/ingress.yaml")) as f:
    dep = yaml.safe_load(f)
    k8s_apps_v1 = client.NetworkingV1Api()
    resp = k8s_apps_v1.create_namespaced_ingress(
        body=dep, namespace="fortest")
    print("Ingress created. status='%s'" % resp.metadata.name)

main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions