aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/k8s/base/kustomization.yml
blob: ba0779f68450d3ed20ee058efc2a465ca2ad6191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
  - https://raw.githubusercontent.com/jcmoraisjr/haproxy-ingress/master/docs/haproxy-ingress.yaml

patches:
  - patch: |-
      - op: add
        path: /spec/template/spec/containers/0/args/-
        value: --watch-ingress-without-class
    target:
      kind: DaemonSet
      name: haproxy-ingress
      namespace: ingress-controller
  - patch: |
      apiVersion: v1
      kind: Namespace
      metadata:
        name: ingress-controller
        labels:
          pod-security.kubernetes.io/enforce: privileged