--- /dev/null
+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
routes:
- network: 0.0.0.0/0
gateway: {{ hostvars[proxmox.host].network.self_internal_ip }}
+ nodeLabels:
+ role: ingress-controller
dest: "{{ inventory_dir }}/talos/host-{{ inventory_hostname }}.patch"
delegate_to: 127.0.0.1
when: "not 'resources' in nodes or nodes.resources|length == 0"