initial
This commit is contained in:
		
							
								
								
									
										23
									
								
								.helmignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.helmignore
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,23 @@ | |||||||
|  | # Patterns to ignore when building packages. | ||||||
|  | # This supports shell glob matching, relative path matching, and | ||||||
|  | # negation (prefixed with !). Only one pattern per line. | ||||||
|  | .DS_Store | ||||||
|  | # Common VCS dirs | ||||||
|  | .git/ | ||||||
|  | .gitignore | ||||||
|  | .bzr/ | ||||||
|  | .bzrignore | ||||||
|  | .hg/ | ||||||
|  | .hgignore | ||||||
|  | .svn/ | ||||||
|  | # Common backup files | ||||||
|  | *.swp | ||||||
|  | *.bak | ||||||
|  | *.tmp | ||||||
|  | *.orig | ||||||
|  | *~ | ||||||
|  | # Various IDEs | ||||||
|  | .project | ||||||
|  | .idea/ | ||||||
|  | *.tmproj | ||||||
|  | .vscode/ | ||||||
							
								
								
									
										6
									
								
								Chart.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								Chart.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | |||||||
|  | apiVersion: v2 | ||||||
|  | name: novit-app | ||||||
|  | description: A Helm chart for Kubernetes | ||||||
|  | type: application | ||||||
|  | version: 0.1.0 | ||||||
|  | appVersion: "1.0.0" | ||||||
							
								
								
									
										20
									
								
								templates/apps.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/apps.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | |||||||
|  | {{- range until (.Values.nb_app|int) }} | ||||||
|  | --- | ||||||
|  | apiVersion: apps/v1 | ||||||
|  | kind: Deployment | ||||||
|  | metadata: | ||||||
|  |   name: app-{{.}} | ||||||
|  | spec: | ||||||
|  |   replicas: 1 | ||||||
|  |   selector: | ||||||
|  |     matchLabels: | ||||||
|  |       app: "{{.}}" | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       labels: | ||||||
|  |         app: "{{.}}" | ||||||
|  |     spec: | ||||||
|  |       containers: | ||||||
|  |       - name: app | ||||||
|  |         image: nginx:1.25.2-alpine | ||||||
|  | {{- end }} | ||||||
							
								
								
									
										36
									
								
								templates/dbs.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								templates/dbs.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | |||||||
|  | {{- range until (.Values.nb_db|int) }} | ||||||
|  | --- | ||||||
|  | apiVersion: apps/v1 | ||||||
|  | kind: StatefulSet | ||||||
|  | metadata: | ||||||
|  |   name: db-{{.}} | ||||||
|  | spec: | ||||||
|  |   replicas: 1 | ||||||
|  |   selector: | ||||||
|  |     matchLabels: | ||||||
|  |       db: "{{.}}" | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       labels: | ||||||
|  |         db: "{{.}}" | ||||||
|  |     spec: | ||||||
|  |       containers: | ||||||
|  |       - name: db | ||||||
|  |         image: quay.io/coreos/etcd:v3.5.9 | ||||||
|  |         args: | ||||||
|  |         - --data-dir=/data | ||||||
|  |         env: | ||||||
|  |         - name: ETCD_INITIAL_CLUSTER_STATE | ||||||
|  |           value: new | ||||||
|  |         volumeMounts: | ||||||
|  |         - name: data | ||||||
|  |           mountPath: /data | ||||||
|  |   volumeClaimTemplates: | ||||||
|  |   - metadata: | ||||||
|  |       name: data | ||||||
|  |     spec: | ||||||
|  |       storageClass: local | ||||||
|  |       resources: | ||||||
|  |         requests: | ||||||
|  |           storage: 1Gi | ||||||
|  | {{- end }} | ||||||
							
								
								
									
										4
									
								
								values.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								values.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  |  | ||||||
|  | nb_db:  0 | ||||||
|  | nb_app: 0 | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user