Add self-contained API simulators lab with Compose and Helm.
Ship Proxmox, oVirt, VMware, and OpenStack behind one Postgres stack, Makefile helpers (up/clean/helm up|down/push), and a Helm chart with namespace, Let's Encrypt ingresses, migrate inits, and skip-if-seeded jobs.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
1. Namespace: {{ include "lab.namespace" . }}
|
||||
|
||||
2. Point DNS (or /etc/hosts for local-only) at the Ingress controller:
|
||||
{{- range $name, $ing := .Values.ingresses }}
|
||||
{{- if $ing.enabled }}
|
||||
{{ $ing.host }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
3. Open simulators (TLS via cert-manager / Let's Encrypt when enabled):
|
||||
{{- range $name, $ing := .Values.ingresses }}
|
||||
{{- if $ing.enabled }}
|
||||
{{- $https := or $ing.tls $.Values.certManager.enabled }}
|
||||
http{{ if $https }}s{{ end }}://{{ $ing.host }}{{ $ing.path | default "/" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.certManager.enabled }}
|
||||
|
||||
cert-manager ClusterIssuer: {{ include "lab.clusterIssuer" . }}
|
||||
{{- if .Values.certManager.createClusterIssuer }}
|
||||
(created by this chart; email={{ .Values.certManager.email }})
|
||||
{{- else }}
|
||||
(expected to already exist in the cluster)
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Configure namespace / hosts / TLS under `.Values.namespace`, `.Values.ingresses`, `.Values.certManager`.
|
||||
Reference in New Issue
Block a user