add HAProxy
This commit is contained in:
40
apps/haproxy.yaml
Normal file
40
apps/haproxy.yaml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
name: haproxy-kubernetes-ingress
|
||||||
|
spec:
|
||||||
|
goTemplate: true
|
||||||
|
goTemplateOptions: ["missingkey=error"]
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: production
|
||||||
|
url: https://kubernetes.default.svc
|
||||||
|
- cluster: staging
|
||||||
|
url: https://k3s-ctrl-lb.lab.kill0.net:6443
|
||||||
|
- cluster: development
|
||||||
|
url: https://k0s-ctrl-vip.lab.kill0.net:6443
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: 'haproxy-kubernetes-ingress-{{.cluster}}'
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: haproxy-kubernetes-ingress
|
||||||
|
repoURL: https://git.kill0.net/ryanc/argocd.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
helm:
|
||||||
|
releaseName: haproxy-kubernetes-ingress
|
||||||
|
valueFiles:
|
||||||
|
- values.yaml
|
||||||
|
- values-{{.cluster}}.yaml
|
||||||
|
ignoreMissingValueFiles: true
|
||||||
|
destination:
|
||||||
|
server: '{{.url}}'
|
||||||
|
namespace: haproxy-controller
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
9
haproxy-kubernetes-ingress/Chart.yaml
Normal file
9
haproxy-kubernetes-ingress/Chart.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v2
|
||||||
|
name: haproxy-kubernetes-ingress
|
||||||
|
version: "1.0.0"
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- name: kubernetes-ingress
|
||||||
|
version: 1.24.0
|
||||||
|
repository: https://haproxytech.github.io/helm-charts
|
Reference in New Issue
Block a user