Hello, I am really puzzled by the kubernetes provi...
# general
s
Hello, I am really puzzled by the kubernetes provider. I am trying to deploy Traefik using the helm chart in Go. The namespace is not created automatically, so I am creating it and throwing a DependsOn ResourceOption. What I have noticed is that not all resources are created in the namespace: the Service isn’t. Could it be because they are using the new List kind?
Copy code
# Source: traefik/templates/service.yaml
apiVersion: v1
kind: List
items:
  - apiVersion: v1
    kind: Service
    metadata:
      name: traefik
      labels:
        <http://app.kubernetes.io/name|app.kubernetes.io/name>: traefik
        <http://helm.sh/chart|helm.sh/chart>: traefik-9.18.0
        <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: Helm
        <http://app.kubernetes.io/instance|app.kubernetes.io/instance>: traefik
      annotations:
    spec:
      type: LoadBalancer
      selector:
        <http://app.kubernetes.io/name|app.kubernetes.io/name>: traefik
        <http://app.kubernetes.io/instance|app.kubernetes.io/instance>: traefik
      ports:
      - port: 80
        name: web
        targetPort: "web"
        protocol: "TCP"
      - port: 443
        name: websecure
        targetPort: "websecure"
        protocol: "TCP"
The Service is always created in the default namespace…
w
You mentioned that you have a dependsOn set, but are you also passing the Namespace property in the Chart resource declaration as per: https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/chart/#deploy-chart-into-namespace