aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/k8s/base/kustomization.yml
blob: 042348010dcf0d954eb3c28532626b3eba0bf02e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
  - https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.0/deploy/static/provider/cloud/deploy.yaml
  - https://github.com/alexpdp7/talos-check/raw/main/manifest.yaml
  - https://raw.githubusercontent.com/alexpdp7/alexpdp7/master/blog/k8s.yaml

patches:
  - patch: |-
      - op: add
        path: "/metadata/annotations/ingressclass.kubernetes.io~1is-default-class"
        value: true
    target:
      kind: IngressClass
      name: nginx
  - patch: |
      apiVersion: v1
      kind: Namespace
      metadata:
        name: ingress-nginx
        labels:
          pod-security.kubernetes.io/enforce: privileged
  - patch: |
      apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: ingress-nginx-controller
        namespace: ingress-nginx
      spec:
        template:
          spec:
            hostNetwork: true