mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Made ingressClassName configurable
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: argocd-configuration
|
name: argocd-configuration
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
type: application
|
type: application
|
||||||
description: "ArgoCD configuration which requires Argo CD to be installed separately."
|
description: "ArgoCD configuration which requires Argo CD to be installed separately."
|
||||||
maintainers:
|
maintainers:
|
||||||
@@ -8,8 +8,8 @@ maintainers:
|
|||||||
url: https://2martens.de
|
url: https://2martens.de
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: added
|
||||||
description: Made ingressClassName configurable
|
description: Added gateway support
|
||||||
artifacthub.io/signKey: |
|
artifacthub.io/signKey: |
|
||||||
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
|
||||||
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{{- if .Values.gateway.enabled }}
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: argocd-server-gateway
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: {{ .Values.gateway.certIssuer }}
|
||||||
|
spec:
|
||||||
|
gatewayClassName: cilium
|
||||||
|
listeners:
|
||||||
|
- name: {{ tpl (quote .Values.gateway.host) . }}
|
||||||
|
protocol: HTTPS
|
||||||
|
port: 443
|
||||||
|
hostname: {{ tpl (quote .Values.gateway.host) . }}
|
||||||
|
tls:
|
||||||
|
certificateRefs:
|
||||||
|
- kind: Secret
|
||||||
|
name: argocd-server-tls
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: argocd-server-route
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
hostnames:
|
||||||
|
- {{ tpl (quote .Values.gateway.host) . }}
|
||||||
|
parentRefs:
|
||||||
|
- name: cilium-gateway
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- name: argo-cd-argocd-server
|
||||||
|
port: https
|
||||||
|
{{- end }}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if .Values.ingress.enabled }}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
@@ -28,3 +29,4 @@ spec:
|
|||||||
- hosts:
|
- hosts:
|
||||||
- {{ tpl (quote .Values.ingress.host) . }}
|
- {{ tpl (quote .Values.ingress.host) . }}
|
||||||
secretName: argocd-server-tls # as expected by argocd-server
|
secretName: argocd-server-tls # as expected by argocd-server
|
||||||
|
{{- end }}
|
||||||
@@ -4,10 +4,17 @@ appOfApps:
|
|||||||
path: argocd/app-of-apps/{{ .Values.environment }}
|
path: argocd/app-of-apps/{{ .Values.environment }}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
|
enabled: false
|
||||||
# variable is templated
|
# variable is templated
|
||||||
host: argocd.k8s.{{ .Values.environment }}.2martens.de
|
host: argocd.k8s.{{ .Values.environment }}.2martens.de
|
||||||
certIssuer: lets-encrypt
|
certIssuer: lets-encrypt
|
||||||
className: default
|
className: default
|
||||||
|
|
||||||
|
gateway:
|
||||||
|
enabled: false
|
||||||
|
# variable is templated
|
||||||
|
host: argocd.k8s.{{ .Values.environment }}.2martens.de
|
||||||
|
certIssuer: lets-encrypt
|
||||||
|
|
||||||
# should be overriden for the specific installation
|
# should be overriden for the specific installation
|
||||||
environment: ""
|
environment: ""
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: my-nginx
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
run: my-nginx
|
||||||
|
replicas: 2
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
run: my-nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: my-nginx
|
||||||
|
image: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
Reference in New Issue
Block a user