infrastructure/pomerium/templates/authorize-service.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

45 lines
1.6 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ template "pomerium.authorize.fullname" . }}
labels:
app.kubernetes.io/name: {{ template "pomerium.authorize.name" . }}
helm.sh/chart: {{ template "pomerium.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: authorize
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
{{- if or .Values.authorize.service.annotations .Values.service.annotations }}
annotations:
{{- if .Values.authorize.service.annotations }}
{{- range $key, $value := .Values.authorize.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- else if .Values.service.annotations }}
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
spec:
{{- if .Values.authorize.service.clusterIP }}
clusterIP: {{ .Values.authorize.service.clusterIP }}
{{- end }}
type: {{ .Values.authorize.service.type }}
ports:
- port: {{ template "pomerium.service.externalPort" . }}
targetPort: {{ template "pomerium.grpcTrafficPort.name" . }}
protocol: TCP
name: {{ template "pomerium.grpcTrafficPort.name" . }}
- name: metrics
port: {{ .Values.metrics.port }}
protocol: TCP
targetPort: metrics
{{- if hasKey .Values.service "nodePort" }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
selector:
app.kubernetes.io/name: {{ template "pomerium.authorize.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}