add standard raw-resources-sandbox and secrets-sandbox structure
This commit is contained in:
parent
edbc77669d
commit
52d4babf0a
22
argocd-apps/raw-resources-sandbox.yaml
Normal file
22
argocd-apps/raw-resources-sandbox.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: raw-resources-sandbox
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: sandbox
|
||||||
|
source:
|
||||||
|
repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/sandbox.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: manifests/raw-resources-sandbox
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: sandbox
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
23
argocd-apps/secrets-sandbox.yaml
Normal file
23
argocd-apps/secrets-sandbox.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: secrets-sandbox
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: sandbox
|
||||||
|
source:
|
||||||
|
repoURL: ssh://git@gitea-ssh.dev-tools.svc.cluster.local:2222/dvirlabs/sandbox.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: charts/secrets
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- ../../manifests/secrets-sandbox/values.yaml
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: sandbox
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
13
charts/nginx-message-1/templates/nodeport.yaml
Normal file
13
charts/nginx-message-1/templates/nodeport.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-nodeport
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: {{ .Release.Name }}
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: {{ .Values.service.port | default 80 }}
|
||||||
|
targetPort: 80
|
||||||
|
nodePort: {{ .Values.service.nodePort | default 30080 }}
|
||||||
6
charts/secrets/Chart.yaml
Normal file
6
charts/secrets/Chart.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: secrets
|
||||||
|
description: Generic ExternalSecret resources chart
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "1.0.0"
|
||||||
23
charts/secrets/templates/external-secret.yaml
Normal file
23
charts/secrets/templates/external-secret.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{{- range .Values.externalSecrets }}
|
||||||
|
---
|
||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: {{ .name }}
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
spec:
|
||||||
|
refreshInterval: {{ .refreshInterval | default "1h" }}
|
||||||
|
secretStoreRef:
|
||||||
|
name: {{ $.Values.secretStore.name }}
|
||||||
|
kind: {{ $.Values.secretStore.kind }}
|
||||||
|
target:
|
||||||
|
name: {{ .targetName }}
|
||||||
|
creationPolicy: {{ .creationPolicy | default "Owner" }}
|
||||||
|
data:
|
||||||
|
{{- range .data }}
|
||||||
|
- secretKey: {{ .secretKey }}
|
||||||
|
remoteRef:
|
||||||
|
key: {{ .remoteKey }}
|
||||||
|
property: {{ .property }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
0
manifests/raw-resources-sandbox/.gitkeep
Normal file
0
manifests/raw-resources-sandbox/.gitkeep
Normal file
5
manifests/secrets-sandbox/values.yaml
Normal file
5
manifests/secrets-sandbox/values.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
secretStore:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
|
||||||
|
externalSecrets: []
|
||||||
Loading…
x
Reference in New Issue
Block a user