Created
July 4, 2019 03:09
-
-
Save hieunt79/75e0b82b71dd4eda2907184dac5e654c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## GitLab CE image | |
## ref: https://hub.docker.com/r/gitlab/gitlab-ce/tags/ | |
## | |
image: gitlab/gitlab-ce:9.4.1-ce.0 | |
## Specify a imagePullPolicy | |
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent' | |
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images | |
## | |
# imagePullPolicy: | |
## The URL (with protocol) that your users will use to reach the install. | |
## ref: https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab | |
## | |
# externalUrl: http://your-domain.com/ | |
## Change the initial default admin password if set. If not set, you'll be | |
## able to set it when you first visit your install. | |
## | |
# gitlabRootPassword: "" | |
## For minikube, set this to NodePort, elsewhere use LoadBalancer | |
## ref: http://kubernetes.io/docs/user-guide/services/#publishing-services---service-types | |
## | |
serviceType: LoadBalancer | |
## Ingress configuration options | |
## | |
ingress: | |
annotations: | |
# kubernetes.io/ingress.class: nginx | |
# kubernetes.io/tls-acme: "true" | |
enabled: false | |
tls: | |
# - secretName: gitlab.cluster.local | |
# hosts: | |
# - gitlab.cluster.local | |
url: gitlab.cluster.local | |
## Configure external service ports | |
## ref: http://kubernetes.io/docs/user-guide/services/ | |
sshPort: 22 | |
httpPort: 80 | |
httpsPort: 443 | |
## livenessPort Port of liveness probe endpoint | |
livenessPort: http | |
## readinessPort Port of readiness probe endpoint | |
readinessPort: http | |
## Configure resource requests and limits | |
## ref: http://kubernetes.io/docs/user-guide/compute-resources/ | |
## | |
resources: | |
## GitLab requires a good deal of resources. We have split out Postgres and | |
## redis, which helps some. Refer to the guidelines for larger installs. | |
## ref: https://docs.gitlab.com/ce/install/requirements.html#hardware-requirements | |
requests: | |
memory: 1Gi | |
cpu: 500m | |
limits: | |
memory: 2Gi | |
cpu: 1 | |
## Enable persistence using Persistent Volume Claims | |
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ | |
## ref: https://docs.gitlab.com/ce/install/requirements.html#storage | |
## | |
persistence: | |
## This volume persists generated configuration files, keys, and certs. | |
## | |
gitlabEtc: | |
enabled: true | |
size: 1Gi | |
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass> | |
## Default: volume.alpha.kubernetes.io/storage-class: default | |
## | |
storageClass: "slow" | |
accessMode: ReadWriteOnce | |
## This volume is used to store git data and other project files. | |
## ref: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory | |
## | |
gitlabData: | |
enabled: true | |
size: 3Gi | |
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass> | |
## Default: volume.alpha.kubernetes.io/storage-class: default | |
## | |
storageClass: "slow" | |
accessMode: ReadWriteOnce | |
## Configuration values for the postgresql dependency. | |
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md | |
## | |
postgresql: | |
# 9.6 is the newest supported version for the GitLab container | |
imageTag: "9.6" | |
cpu: 1000m | |
memory: 1Gi | |
postgresUser: gitlab | |
postgresPassword: gitlab | |
postgresDatabase: gitlab | |
persistence: | |
storageClass: "slow" | |
size: 2Gi | |
## Configuration values for the redis dependency. | |
## ref: https://github.com/kubernetes/charts/blob/master/stable/redis/README.md | |
## | |
redis: | |
redisPassword: "gitlab" | |
resources: | |
requests: | |
memory: 1Gi | |
persistence: | |
storageClass: "slow" | |
size: 2Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment