add cnpg to gitea
This commit is contained in:
		
							
								
								
									
										18
									
								
								apps/dendrite/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/dendrite/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | apiVersion: traefik.io/v1alpha1 | ||||||
|  | kind: IngressRoute | ||||||
|  | metadata: | ||||||
|  |   name: dendrite-ingressroute | ||||||
|  |  | ||||||
|  | spec: | ||||||
|  |   entryPoints: | ||||||
|  |     - websecure | ||||||
|  |   routes: | ||||||
|  |   - match: Host(`dendrite.kluster.moll.re`) | ||||||
|  |     kind: Rule | ||||||
|  |     services: | ||||||
|  |     - name: dendrite | ||||||
|  |       port: 8008 | ||||||
|  |       # scheme: https | ||||||
|  |  | ||||||
|  |   tls: | ||||||
|  |     certResolver: default-tls  | ||||||
| @@ -54,17 +54,12 @@ ingress: | |||||||
|  |  | ||||||
| ## @param resources Kubernetes resources | ## @param resources Kubernetes resources | ||||||
| resources: | resources: | ||||||
|   {} |   limits: | ||||||
|   # We usually recommend not to specify default resources and to leave this as a conscious |     cpu: 1 | ||||||
|   # choice for the user. This also increases chances charts run on environments with little |     memory: 1Gi | ||||||
|   # resources, such as Minikube. If you do want to specify resources, uncomment the following |   requests: | ||||||
|   # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |     cpu: 100m | ||||||
|   # limits: |     memory: 128Mi | ||||||
|   #   cpu: 100m |  | ||||||
|   #   memory: 128Mi |  | ||||||
|   # requests: |  | ||||||
|   #   cpu: 100m |  | ||||||
|   #   memory: 128Mi |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ## @section Persistence | ## @section Persistence | ||||||
| @@ -123,11 +118,6 @@ gitea: | |||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   ## @param gitea.ssh.logLevel Configure OpenSSH's log level. Only available for root-based Gitea image. |  | ||||||
|   ssh: |  | ||||||
|     logLevel: "INFO" |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| ## @section PostgreSQL | ## @section PostgreSQL | ||||||
| # | # | ||||||
| @@ -164,15 +154,5 @@ postgresql: | |||||||
|  |  | ||||||
| redis-cluster: | redis-cluster: | ||||||
|   enabled: false |   enabled: false | ||||||
|  |  | ||||||
| postgresql-ha: | postgresql-ha: | ||||||
|   enabled: false |   enabled: false | ||||||
|  |  | ||||||
| # By default, removed or moved settings that still remain in a user defined values.yaml will cause Helm to fail running the install/update. |  | ||||||
| # Set it to false to skip this basic validation check. |  | ||||||
| ## @section Advanced |  | ||||||
| ## @param checkDeprecation Set it to false to skip this basic validation check. |  | ||||||
| ## @param test.enabled Set it to false to disable test-connection Pod. |  | ||||||
| ## @param test.image.name Image name for the wget container used in the test-connection Pod. |  | ||||||
| ## @param test.image.tag Image tag for the wget container used in the test-connection Pod. |  | ||||||
| checkDeprecation: true |  | ||||||
|   | |||||||
| @@ -1,13 +1,18 @@ | |||||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | apiVersion: kustomize.config.k8s.io/v1beta1 | ||||||
| kind: Kustomization | kind: Kustomization | ||||||
| resources:  | resources: | ||||||
|   - namespace.yaml |   - namespace.yaml | ||||||
|  |   # postgres values | ||||||
|  |   - postgres-password.sealedsecret.yaml | ||||||
|  |   - postgres.yaml | ||||||
|  |   # gitea values | ||||||
|   - gitea.pvc.yaml |   - gitea.pvc.yaml | ||||||
|   - gitea.ingress.yaml |   - gitea.ingress.yaml | ||||||
|   - gitea.servicemonitor.yaml |   - gitea.servicemonitor.yaml | ||||||
|  |   # actions runner values | ||||||
|   - actions.deployment.yaml |   - actions.deployment.yaml | ||||||
|   - actions.sealedsecret.yaml |   - actions.sealedsecret.yaml | ||||||
|   # - actions.rbac.yaml |  | ||||||
|  |  | ||||||
|  |  | ||||||
| namespace: gitea | namespace: gitea | ||||||
|   | |||||||
							
								
								
									
										17
									
								
								infrastructure/gitea/postgres-password.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								infrastructure/gitea/postgres-password.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | --- | ||||||
|  | apiVersion: bitnami.com/v1alpha1 | ||||||
|  | kind: SealedSecret | ||||||
|  | metadata: | ||||||
|  |   creationTimestamp: null | ||||||
|  |   name: postgres-password | ||||||
|  |   namespace: gitea | ||||||
|  | spec: | ||||||
|  |   encryptedData: | ||||||
|  |     database: AgB8FeAX7Dx/SO/deoqeIRNPMe7DwgKtwFznjntm9TNnEJQDLVVu+D80eolcrTTOhlZJZgtKvpM9xgw7DLtKG+ARACaPYgaMW2m4V/B87Z3xAU0DCF16sv9LVIfNA8KyQZWYthEcWLpqoB0zVFBrb2PxI8QIV22QkNG4oITMCv/Xjf7P+pTa6iWWSLdPcR2tQVfkHsdWWJvtLcrLkI7i+sWjQOW8tgV8QAcQr5JcxEjSgb3X1J3R1EEVHsPAqQcdpUB7eQ7T9SbIaIpTXw05Tant42GMgALVx2J5TAzqLPdaVaUlKVRoN26eVthYhY9qKbskXkXZp/0Sa/RxXoVHt1jMyZFicMzp5w5yC3DZd9gTtsZOrn21NS1QAVh6twB2bxtf7EHjpS5AyvhaF9qbbGkZtUh4IhFSOpd6bMGZLZqQMcH+Ih9b+jv0j3cLBLY0Bzsj4u5yLvoqhOBcxLoVnW3N3x248y3ZUWkO7hPwP+Lo5FOX/cmK9VHvn5ZhNWNNO9xv0LYSzhqnAvVyTgvAGLDTrZbnp36Q+JkqlhrhFQoQkXRQ2HHNU5CC+o59OL0RnshJg4UUed1ETmOPCJmcPZdKNvfUiW1PUB2AwDeWhRyN6wjwzreioSN6qHrxctXpEQohTwzGeG+rgG0tj9V3yHn1Er1j0pR6S9VJBkaQ0qnaInSthxSC5MkXTKXFmW8YfHQqXKmQcQ== | ||||||
|  |     password: AgB+i/mSHnQJnBpRu1cGwKzqrqoSzKfbGkxWTv57ozmiVkEendzudwKu+3MJQh9fHrBwUa0Cu2Oq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OhOhSKcia+XGG58TQLuosQCYH+P1OZ1LbFfj9O/NBmqWnH2dBIRCC5Ba6b+nNpOQaSztMeEOCSCdYmglS9MmP34zzFjusZ8hAj7ebe25gCo1UCSxYR/xEjrGQsyXY9VB9IPjVO8F7Ms9ex3KITYoib5HcMFCvDUOKl3SOmsJmzf/ahufHXRr/NdPFAoqLU6sehcNAx8LKp/795h3N3PBqol/y9Kv4xbAquz8/qY0giHJfaWcKP/LuVZ81s6MvQlnqn/UWXWzQgNo/RbZw== | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       creationTimestamp: null | ||||||
|  |       name: postgres-password | ||||||
|  |       namespace: gitea | ||||||
| @@ -4,15 +4,15 @@ metadata: | |||||||
|   name: gitea-postgres |   name: gitea-postgres | ||||||
| spec: | spec: | ||||||
|   instances: 1 |   instances: 1 | ||||||
|   imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.2 |   imageName: ghcr.io/cloudnative-pg/postgresql:11 | ||||||
|   bootstrap: |   bootstrap: | ||||||
|     initdb: |     initdb: | ||||||
|       import: |       owner: gitea | ||||||
|         type: monolith |       database: gitea | ||||||
|         databases: |       secret: | ||||||
|            |         name: postgres-password | ||||||
|  |  | ||||||
|  |  | ||||||
|     # Persistent storage configuration |  | ||||||
|   storage: |   storage: | ||||||
|     size: 10Gi |     size: 10Gi | ||||||
|     pvcTemplate: |     pvcTemplate: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user