Add nginx release
This commit is contained in:
parent
db3a41fcc1
commit
2dfe1af11e
6
apps/base/nginx/kustomization.yaml
Normal file
6
apps/base/nginx/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: nginx
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- release.yaml
|
4
apps/base/nginx/namespace.yaml
Normal file
4
apps/base/nginx/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nginx
|
18
apps/base/nginx/release.yaml
Normal file
18
apps/base/nginx/release.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: nginx
|
||||
namespace: nginx
|
||||
spec:
|
||||
releaseName: nginx
|
||||
chart:
|
||||
spec:
|
||||
chart: nginx
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bitnami
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
4
apps/production/kustomization.yaml
Normal file
4
apps/production/kustomization.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base/nginx
|
16
clusters/production/apps.yaml
Normal file
16
clusters/production/apps.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
dependsOn:
|
||||
- name: infrastructure
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./apps/production
|
||||
prune: true
|
||||
wait: true
|
||||
timeout: 5m0s
|
Loading…
Reference in New Issue
Block a user