title: “Gitlab external ingress”
date: 2019-07-03T14:58:19
slug: gitlab-external-ingress
Edit Ingress controller (maybe backend is missing)
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
creationTimestamp: "2019-07-03T14:45:20Z"
generation: 2
labels:
app: gitlab-gitlab-ce
chart: gitlab-ce-0.2.2
heritage: Tiller
release: gitlab
name: gitlab-gitlab-ce
namespace: default
spec:
rules:
- host: gitlab.asanger.eu
http:
paths:
- backend:
serviceName: gitlab-gitlab-ce
servicePort: 80
tls:
- hosts:
- gitlab.asanger.eu
secretName: gitlab-asanger-eu
values.yaml:
If external url is set to https, the internal nginx controller will crash because of a missing ssl cert.
image: gitlab/gitlab-ce:9.4.1-ce.0
externalUrl: http://gitlab.asanger.eu/
gitlabRootPassword: "changeme"
serviceType: LoadBalancer
ingress:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
enabled: true
tls:
- secretName: gitlab-asanger-eu
hosts:
- gitlab.asanger.eu
url: gitlab.asanger.eu
sshPort: 22
httpPort: 80
httpsPort: 443
livenessPort: http
readinessPort: http
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
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: local-disks
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: 10Gi
## If defined, volume.beta.kubernetes.io/storage-class: <storageClass>
## Default: volume.alpha.kubernetes.io/storage-class: default
##
storageClass: local-disks
accessMode: ReadWriteOnce
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:
size: 10Gi
redis:
redisPassword: "gitlab"
resources:
requests:
memory: 1Gi
persistence:
size: 10Gi
