47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: redis
|
|
namespace: argocd
|
|
spec:
|
|
generators:
|
|
- list:
|
|
elements:
|
|
- cluster: https://kubernetes.default.svc
|
|
env: prod
|
|
hostname: redis.srv.oceanbox.io
|
|
- cluster: https://kubernetes.default.svc
|
|
env: staging
|
|
hostname: redis.beta.oceanbox.io
|
|
template:
|
|
metadata:
|
|
name: '{{ env }}-redis'
|
|
spec:
|
|
project: aux
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: redis
|
|
sources:
|
|
# - repoURL: https://charts.bitnami.com/bitnami
|
|
# targetRevision: 18.9.1
|
|
# chart: redis
|
|
# helm:
|
|
# valueFiles:
|
|
# - $values/redis/values.yaml
|
|
# - repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
# targetRevision: HEAD
|
|
# path: manifests/redis/{{ env }}
|
|
# ref: values
|
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
|
targetRevision: main
|
|
path: manifests/redis
|
|
plugin:
|
|
name: kustomize-helm-with-rewrite
|
|
parameters:
|
|
- name: env
|
|
string: '{{ env }}'
|
|
- name: hostname
|
|
string: '{{ hostname }}'
|
|
- name: chart
|
|
string: bitnami/redis
|