From: alex Date: Sun, 11 Jun 2023 10:58:58 +0000 (+0200) Subject: Switch from haproxy-ingress to ingress-nginx X-Git-Tag: 20240214-emacs~335 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=0c51de907a552a7abd9868ff5438b060deaab337;p=alex.git Switch from haproxy-ingress to ingress-nginx Having problems with reverse proxy setup, ingress-nginx seems to be officially recommended --- diff --git a/personal_infra/k8s/base/kustomization.yml b/personal_infra/k8s/base/kustomization.yml index 9b0db99..05b0b21 100644 --- a/personal_infra/k8s/base/kustomization.yml +++ b/personal_infra/k8s/base/kustomization.yml @@ -2,22 +2,31 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - https://raw.githubusercontent.com/jcmoraisjr/haproxy-ingress/master/docs/haproxy-ingress.yaml + - 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 patches: - patch: |- - op: add - path: /spec/template/spec/containers/0/args/- - value: --watch-ingress-without-class + path: "/metadata/annotations/ingressclass.kubernetes.io~1is-default-class" + value: true target: - kind: DaemonSet - name: haproxy-ingress - namespace: ingress-controller + kind: IngressClass + name: nginx - patch: | apiVersion: v1 kind: Namespace metadata: - name: ingress-controller + 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