Skip to content

openshift-devspaces sync fails with included networkpolicies #419

Description

@david-igou

Using the aggregate/overlays/default overlay

Syncing the checluster returns:

Internal error occurred: failed calling webhook "mchecluster.kb.io": failed to call webhook: Post "https://devspaces-operator-service.openshift-devspaces.svc:443/mutate-org-eclipse-che-v2-checluster?timeout=10s": context deadline exceeded

I was able to work around this by adding this networkpolicy:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-webhook-from-apiserver
spec:
  ingress:
    - ports:
      - protocol: TCP
        port: 9443
  podSelector: {}
  policyTypes:
  - Ingress

This appears to be necessary because the kube-apiserver uses host networking, but that should be verified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions