| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2020-05-27 08:16:37 +02:00
										 |  |  | title: Kubernetes | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | subtitle: Install scm-manager on kubernetes with helm | 
					
						
							|  |  |  | displayToc: true | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | To install SCM-Manager on Kubernetes we offer a [Helm](https://helm.sh) chart. | 
					
						
							|  |  |  | The chart is only tested with v3 of helm. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Quickstart
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```bash | 
					
						
							|  |  |  | helm repo add scm-manager https://packages.scm-manager.org/repository/helm-v2-releases/ | 
					
						
							|  |  |  | helm repo update | 
					
						
							|  |  |  | helm install scm-manager scm-manager/scm-manager | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Configuration
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | If you want to customize the installation you can use a values files e.g.: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```bash | 
					
						
							|  |  |  | helm install scm-manager scm-manager/scm-manager --values=custom.yml | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following table list the configurable parameters of the SCM-Manager chart and their default values. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Chart Values
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | | Key | Type | Default | Description | | 
					
						
							|  |  |  | |-----|------|---------|-------------| | 
					
						
							|  |  |  | | affinity | object | `{}` | Affinity settings | | 
					
						
							| 
									
										
										
										
											2021-12-16 13:58:10 +01:00
										 |  |  | | extraArgs | list | `[]` | Arguments to pass to the container | | 
					
						
							| 
									
										
										
										
											2021-01-07 15:46:41 +01:00
										 |  |  | | extraEnv | string | `""` | Additional environment variables, parsed through tpl function | | 
					
						
							|  |  |  | | extraEnvFrom | string | `""` | Additional environment variables mapped from Secret or ConfigMap, parsed through tpl function | | 
					
						
							|  |  |  | | extraVolumeMounts | string | `""` | Add additional volumes mounts, parsed through tpl function | | 
					
						
							|  |  |  | | extraVolumes | string | `""` | Add additional volumes, parsed through tpl function | | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | | fullnameOverride | string | `""` | Override the full resource names | | 
					
						
							| 
									
										
										
										
											2021-08-11 11:17:05 +02:00
										 |  |  | | image.pullSecret | string | `""` | Secret with credentials for the image registry | | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | | image.pullPolicy | string | `"IfNotPresent"` | SCM-Manager image pull policy | | 
					
						
							|  |  |  | | image.repository | string | `"scmmanager/scm-manager"` |  Name of SCM-Manager image | | 
					
						
							|  |  |  | | image.tag | string | `"version-off Chart"` | Tag of SCM-Manager image | | 
					
						
							|  |  |  | | ingress.annotations | object | `{}` | Ingress annotations | | 
					
						
							|  |  |  | | ingress.enabled | bool | `false` | Enables ingress | | 
					
						
							|  |  |  | | ingress.hosts | list | `["scm-manager.local"]` | Ingress hosts | | 
					
						
							|  |  |  | | ingress.path | string | `"/"` | Ingress path | | 
					
						
							|  |  |  | | ingress.tls | list | `[]` | Ingress TLS configuration | | 
					
						
							| 
									
										
										
										
											2021-01-07 15:46:41 +01:00
										 |  |  | | lifecycleHooks | string | `""` |  | | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | | nameOverride | string | `""` | Override the resource name prefix | | 
					
						
							|  |  |  | | nodeSelector | object | `{}` | Node labels for pod assignment | | 
					
						
							|  |  |  | | persistence.accessMode | string | `"ReadWriteOnce"` | The PVC access mode | | 
					
						
							|  |  |  | | persistence.enabled | bool | `true` | Enable the use of a PVC for SCM-Manager home | | 
					
						
							|  |  |  | | persistence.size | string | `"40Gi"` | The size of the PVC | | 
					
						
							|  |  |  | | resources | object | `{}` | Resources allocation (Requests and Limits) | | 
					
						
							| 
									
										
										
										
											2021-12-16 13:58:10 +01:00
										 |  |  | | securityContext | object | `{ fsGroup: 0 }` | Securitycontext for the pod | | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | | service.port | int | `80` | k8s service port | | 
					
						
							|  |  |  | | service.type | string | `"LoadBalancer"` | k8s service type | | 
					
						
							| 
									
										
										
										
											2020-07-20 11:46:21 +02:00
										 |  |  | | ssh.dns | list | `["ssh.scm-manager.local"]` | dns names for the ssh service (requires installed external dns) | | 
					
						
							|  |  |  | | ssh.enabled | bool | `false` | Enables ssh access (requires installed ssh plugin) | | 
					
						
							|  |  |  | | ssh.port | int | `2222` | Intenernal ssh port (must match plugin configuration) | | 
					
						
							|  |  |  | | ssh.service.port | int | `2222` | k8s service port for ssh | | 
					
						
							|  |  |  | | ssh.service.type | string | `"LoadBalancer"` | k8s service type for ssh | | 
					
						
							| 
									
										
										
										
											2020-05-26 16:46:31 +02:00
										 |  |  | | tolerations | list | `[]` | Toleration labels for pod assignment | |