infrastructure/pomerium/templates/ingressclass.yaml
Infrastructure Admin d770504fa5 Initial infrastructure as code deployment
This commit includes the complete Kubernetes infrastructure deployment for NGE6:

- Crossplane setup with providers (Kubernetes, Helm, Civo)
- Ambassador/Emissary ingress controller with SSL termination
- Cert-manager with Let's Encrypt and Gandi webhook for DNS01 challenges
- ExternalDNS integration with Gandi for automatic DNS management
- Keycloak authentication server with PostgreSQL
- Pomerium identity-aware proxy with OIDC integration
- Forgejo Git server with persistent storage and authentication
- Spire/SPIFFE for secure service communication

All services are deployed using Infrastructure as Code principles with
Crossplane managing Kubernetes and Helm resources declaratively.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-23 08:43:06 -04:00

25 lines
No EOL
1.1 KiB
YAML

{{- if and .Values.ingressController.ingressClassResource.enabled .Values.ingressController.enabled -}}
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: {{ .Values.ingressController.ingressClassResource.name }}
labels:
app.kubernetes.io/name: {{ template "pomerium.ingressController.name" . }}
helm.sh/chart: {{ template "pomerium.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: ingressController
annotations:
{{- if .Values.ingressController.ingressClassResource.default }}
ingressclass.kubernetes.io/is-default-class: "true"
{{- end }}
{{- with .Values.ingressController.ingressClassResource.defaultCertSecret }}
ingress.pomerium.io/default-cert-secret: {{ . }}
{{- end }}
spec:
controller: {{ .Values.ingressController.ingressClassResource.controllerName }}
{{- if .Values.ingressController.ingressClassResource.parameters -}}
parameters:
{{ toYaml .Values.ingressController.ingressClassResource.parameters | indent 4}}
{{ end }}
{{- end }}