trying cloudnative postgres
This commit is contained in:
		
							
								
								
									
										14
									
								
								infrastructure/pg-ha/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								infrastructure/pg-ha/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
| resources:  | ||||
|   - namespace.yaml | ||||
|  | ||||
| namespace: pg-ha | ||||
|  | ||||
|  | ||||
| helmCharts: | ||||
|   - name: cloudnative-pg | ||||
|     releaseName: pg-controller | ||||
|     version: 0.19.1 | ||||
|     valuesFile: values2.yaml | ||||
|     repo: https://cloudnative-pg.io/charts/ | ||||
							
								
								
									
										4
									
								
								infrastructure/pg-ha/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								infrastructure/pg-ha/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: placeholder | ||||
							
								
								
									
										42
									
								
								infrastructure/pg-ha/values.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								infrastructure/pg-ha/values.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| replicaCount: 1 | ||||
|  | ||||
| # -- Operator configuration. | ||||
| config: | ||||
|   # -- Specifies whether the secret should be created. | ||||
|   create: true | ||||
|   # -- The name of the configmap/secret to use. | ||||
|   name: cnpg-controller-manager-config | ||||
|   # -- Specifies whether it should be stored in a secret, instead of a configmap. | ||||
|   secret: false | ||||
|   # -- The content of the configmap/secret, see | ||||
|   # https://cloudnative-pg.io/documentation/current/operator_conf/#available-options | ||||
|   # for all the available options. | ||||
|   data: {} | ||||
|   # INHERITED_ANNOTATIONS: categories | ||||
|   # INHERITED_LABELS: environment, workload, app | ||||
|   # WATCH_NAMESPACE: namespace-a,namespace-b | ||||
|  | ||||
|  | ||||
| serviceAccount: | ||||
|   # -- Specifies whether the service account should be created. | ||||
|   create: true | ||||
|   # -- The name of the service account to use. | ||||
|   # If not set and create is true, a name is generated using the fullname template. | ||||
|   name: "" | ||||
|  | ||||
| rbac: | ||||
|   # -- Specifies whether ClusterRole and ClusterRoleBinding should be created. | ||||
|   create: true | ||||
|   # -- Aggregate ClusterRoles to Kubernetes default user-facing roles. | ||||
|   # Ref: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles | ||||
|   aggregateClusterRoles: false | ||||
|  | ||||
|  | ||||
| # -- Container Security Context. | ||||
| service: | ||||
|   type: ClusterIP | ||||
|   # -- DO NOT CHANGE THE SERVICE NAME as it is currently used to generate the certificate | ||||
|   # and can not be configured | ||||
|   name: cnpg-webhook-service | ||||
|   port: 443 | ||||
|  | ||||
| @@ -13,10 +13,12 @@ resources: | ||||
|   - projects.yaml | ||||
|   - nfs/ | ||||
|   - backup/ | ||||
|   - pg-ha/ | ||||
|   - gitea/ | ||||
|   - renovate/ | ||||
|   - traefik/ | ||||
|  | ||||
|  | ||||
|   # simple apps | ||||
|   - homarr/ | ||||
|   - whoami/ | ||||
|   | ||||
							
								
								
									
										19
									
								
								kluster-deployments/pg-ha/application.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								kluster-deployments/pg-ha/application.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| apiVersion: argoproj.io/v1alpha1 | ||||
| kind: Application | ||||
| metadata: | ||||
|   name: pg-ha-application | ||||
|   namespace: argocd | ||||
|  | ||||
| spec: | ||||
|   project: infrastructure | ||||
|   source: | ||||
|     repoURL: git@github.com:moll-re/bootstrap-k3s-infra.git | ||||
|     targetRevision: main | ||||
|     path: infrastructure/pg-ha | ||||
|   destination: | ||||
|     server: https://kubernetes.default.svc | ||||
|     namespace: pg-ha | ||||
|   syncPolicy: | ||||
|     automated: | ||||
|       prune: true | ||||
|       selfHeal: true | ||||
							
								
								
									
										4
									
								
								kluster-deployments/pg-ha/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								kluster-deployments/pg-ha/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
| resources: | ||||
| - application.yaml | ||||
		Reference in New Issue
	
	Block a user