Merge pull request #491 from 3dwardch3ng/infra/postgresql
Infra/postgresql
This commit is contained in:
4
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
infrastructures/postgresql/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
#kind: Kustomization
|
||||
#resources:
|
||||
# - ../../base
|
||||
@@ -1,24 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cm
|
||||
namespace: argocd
|
||||
data:
|
||||
admin.enabled: "true"
|
||||
application.instanceLabelKey: "argocd.argoproj.io/instance"
|
||||
exec.enabled: "false"
|
||||
server.rbac.log.enforce.enable: "false"
|
||||
statusbadge.enabled: "false"
|
||||
timeout.hard.reconciliation: "0s"
|
||||
timeout.reconciliation: "180s"
|
||||
url: "https://argocd.cluster.edward.sydney"
|
||||
kustomize.buildOptions: "--enable-helm"
|
||||
configManagementPlugins: |
|
||||
- name: kustomized-helm
|
||||
init:
|
||||
command: ["/bin/sh", "-c"]
|
||||
args: ["helm dependency build"]
|
||||
generate:
|
||||
command: [sh, -c]
|
||||
args: ["helm template --release-name release-name . > all.yaml && kustomize build"]
|
||||
helm.valuesFileSchemes: "http, https, secrets+age-import-kubernetes"
|
||||
@@ -1,4 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./configmap.yaml
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"appName": "argocd-cm",
|
||||
"userGivenName": "argocd-cm",
|
||||
"destNamespace": "argocd-cm",
|
||||
"appName": "app-secrets",
|
||||
"userGivenName": "app-secrets",
|
||||
"destNamespace": "argocd",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "resources/argocd-cm/env/k3s-cluster",
|
||||
"srcPath": "resources/secrets/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
@@ -6,6 +6,7 @@ kubectl create namespace argocd || echo "Namespace argocd already exists"
|
||||
helm repo add argo https://argoproj.github.io/argo-helm || echo "Argo repo already exists"
|
||||
helm repo update || echo "Failed to update helm repos"
|
||||
helm upgrade --install argocd -n argocd -f argocd-values.yaml argo/argo-cd --version 7.3.6
|
||||
helm plugin install https://github.com/jkroepke/helm-secrets
|
||||
|
||||
#Check repo server secret accessibility
|
||||
echo "Checking repo server secret accessibility:"
|
||||
|
||||
@@ -6,6 +6,18 @@ global:
|
||||
domain: argocd.cluster.edward.sydney
|
||||
|
||||
configs:
|
||||
cm: >-
|
||||
kustomize.buildOptions: "--enable-helm"
|
||||
configManagementPlugins: |
|
||||
- name: kustomized-helm
|
||||
init:
|
||||
command: ["/bin/sh", "-c"]
|
||||
args: ["helm dependency build"]
|
||||
generate:
|
||||
command: [sh, -c]
|
||||
args: ["helm template --release-name release-name . > all.yaml && kustomize build"]
|
||||
helm.valuesFileSchemes: "secrets"
|
||||
|
||||
params:
|
||||
server.insecure: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user