Repository navigation
Add gitlab-ce chart to stable. - #202
Conversation
|
Can a kubernetes member verify that this patch is reasonable to test? If so, please reply with "@k8s-bot ok to test" on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands will still work. Regular contributors should join the org to skip this step. If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository. |
|
@k8s-bot ok to test |
There was a problem hiding this comment.
Do we want this to be dynamic param in values.yaml??
There was a problem hiding this comment.
Ugh, that's accidental keypress. I'll fix that.
|
@chrislovecnm Fixed the weird DB value! |
|
@k8s-bot e2e test this |
|
Build may not be happy |
|
@chrislovecnm Yeah, I'm not sure there's much that can be done about that :/ Unless there's a way to set a value just for testing? |
chrislovecnm
left a comment
There was a problem hiding this comment.
Should we link the docs for redis and Postgres?
| GitLab install will be reachable to your users under: | ||
|
|
||
| helm upgrade {{ .Release.Name }} \ | ||
| --set externalUrl=http://your-domain.com stable/gitlab-ce |
There was a problem hiding this comment.
What about if we run it internal only? Proxy with kubectl, an serious edge case. Or install it locally on mini kube
There was a problem hiding this comment.
DNS or /etc/hosts entries still work for internal-only setups.
| release: "{{ .Release.Name }}" | ||
| heritage: "{{ .Release.Service }}" | ||
| spec: | ||
| replicas: 1 |
There was a problem hiding this comment.
I assume that this does not scale?
There was a problem hiding this comment.
Not without a distributed filesystem and some other things. That'll definitely be one of those cases where more advanced users will fork and customize to their setup.
| ports: | ||
| - name: ssh | ||
| containerPort: 22 | ||
| - name: http |
There was a problem hiding this comment.
Yes. This is the default way the omnibus image is deployed.
| containerPort: 22 | ||
| - name: http | ||
| containerPort: 80 | ||
| - name: https |
There was a problem hiding this comment.
What SSL key are we using for https?
There was a problem hiding this comment.
This is more of a placeholder for now, in that GitLab supports it, but we're not configuring it yet. I wanted to get the ports situated so we don't need to change this and the Service in the future.
| ## 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/ |
There was a problem hiding this comment.
If this is required, Uncomment it
There was a problem hiding this comment.
Actually scratch that. What about if the url is on a waf?
There was a problem hiding this comment.
We can't un-comment it without risking a bunked install. This and the notice in NOTES.txt along with the README instructions should make sure it gets done.
|
I would like to see in this chart like most a global persistence.enabled true/false. If this becomes a pattern in official charts then we could perhaps make that a standard flag --persistence false. This and ingress/loadbalancer is the most problematic for testing on non cloud providers |
|
@sputnick A global persistence.enabled flag is not a technical requirement, so I'm going to leave as-is. Aside from that, a global persistence flag is not granular enough for every chart. For example, factorio has separate saved game and mod storage. You often want the former, but don't always need or want the latter. Cassandra has separate commit logs and SS tables that that often have different IO and size demands. There are situations where you may want one in a PVC and not the other. Ingress (nginx controller) and LBs are supported for non-cloud setups as long as they are configured, so I'm hesitant to make things more complex just yet. I'm expecting that people will need to fork this chart for more advanced or rigorous production environments. |
|
@gtaylor Don't get me wrong, what you say is all true but on an environment with no PVs you have to go figure out what non standard parameters disable the PVC for the main chart and then also for the dependencies. The same is true for existing charts like WordPress in K8s Stable (you need to turn off PVs for MariaDB specifically). I just consider this UX problem for the Stable charts and newbies because on a cluster like "kube-solo" or "minikube" that many start on there are no PVs and in those cases there will never be a mixed situation. Btw just to be clear I was not suggesting to only have one field but both the specific and the generic "persistence.enabled". Feel free to ignore, I know it's extra work but it would improve UX if we could start to standardise this as option as a best-practice for testing scenarios. FYI added the idea into the best practices conversation here: |
|
Worked like a charm for me. Are CI runners pre configured? |
|
CI runners are optional, so I figured I'd tackle that separately. This I'd like to follow up with more work after the initial merge so we can keep On Nov 16, 2016 7:15 PM, "Vic Iglesias" [email protected] wrote:
|
| {{- else if contains "LoadBalancer" .Values.serviceType }} | ||
|
|
||
| NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
| Watch the status with: 'kubectl get svc -w {{ template "fullname" . }}' |
There was a problem hiding this comment.
Please add --namespace {{ .Release.Namespace }}
| NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
| Watch the status with: 'kubectl get svc -w {{ template "fullname" . }}' | ||
|
|
||
| export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') |
There was a problem hiding this comment.
AWS doesn't return an IP resulting in
echo http://$SERVICE_IP/
http:///
How about this?
kubectl describe svc {{ template "fullname" . }} --namespace {{ .Release.Namespace }} | grep Ingress | awk '{print $3}'
|
Following readme resulted in pod in crash backoff loop $ kubectl get pods -n gitlab
NAME READY STATUS RESTARTS AGE
gitlab-gitlab-ce-490283815-pj9y6 0/1 CrashLoopBackOff 4 6m
$ kubectl logs gitlab-gitlab-ce-490283815-pj9y6 -n gitlab
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=8.13.3-ce.0
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab vim /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab |
|
Please provide more detail about your environment and cluster. Make sure On Nov 17, 2016 9:57 PM, "Lachlan Evenson" [email protected] wrote:
|
|
v1.4.6 cluster running on AWS Here's the pod description |
|
Can you try drastically bumping the liveness and readiness values? Based on Also, details about your nodes would be interesting. Mem/CPU. Also also, On Nov 17, 2016 10:20 PM, "Lachlan Evenson" [email protected]
|
|
Dependancies missing on my end. This did the trick $helm dependency update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "deis" chart repository
...Successfully got an update from the "levo-charts" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 2 charts
Downloading redis from repo http://storage.googleapis.com/kubernetes-charts
Downloading postgresql from repo http://storage.googleapis.com/kubernetes-charts |
|
Hm, that's weird. Is this something that needs to be committed? |
|
I don't think so. I would like to try with a chart from a repo. I'm installing from directory |
|
I cannot login when creating a password via the webui upon first login. Can you confirm that I should be using admin as the username? |
|
|
||
| 2. Login as the root user: | ||
|
|
||
| Username: admin |
|
Confirmed default username should be root |
|
Noticed pathological logging of the following error in the gitlab container |
|
@ maxlazio can you or DJ maybe help getting this to the finish line? |
|
@k8s-bot ok to test |
|
Sorry for the radio silence. I'm erratic during paternity leave. Happy to answer questions. I spun my test GKE cluster down for the time being. |
|
@k8s-bot ok to test |
| @@ -0,0 +1,9 @@ | |||
| dependencies: | |||
| - name: redis | |||
| repository: http://storage.googleapis.com/kubernetes-charts | |||
There was a problem hiding this comment.
The default repo changed to http://kubernetes-charts.storage.googleapis.com which is why CI is failing.
Checkout:
#234
|
We are happy to land a hand if necessary. /cc @gtaylor |
|
Jenkins Charts e2e failed for commit 609167c. Full PR test history. The magic incantation to run this job again is |
|
Thanks a lot for the cleanup, @viglesiasce! @maxlazio it might be good for us to circle back around as far as next steps for improving this chart after initial merge. We don't have CI runners in and only have a subset of the potentially configurable parameters represented in values.yaml. I'm sure there are quite a few things that could be done better than my initial attempt. |
|
Thanks a lot @gtaylor! |
|
Thanks @gtaylor, I've created https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1790 as a holding issue for further improvements. |
|
Great work, @gtaylor! |
| ## GitLab CE image | ||
| ## ref: https://hub.docker.com/r/gitlab/gitlab-ce/tags/ | ||
| ## | ||
| image: gitlab/gitlab-ce:8.13.3-ce.0 |
There was a problem hiding this comment.
We should bump this to 8.13.9 or 8.14.4.
|
I can send a PR for 8.14.x tonight unless someone else beats me to it.
On Dec 12, 2016 9:48 AM, "Stan Hu" <[email protected]> wrote:
*@stanhu* commented on this pull request.
------------------------------
In stable/gitlab-ce/values.yaml
<#202 (review)>:
@@ -0,0 +1,89 @@
+## GitLab CE image
+## ref: https://hub.docker.com/r/gitlab/gitlab-ce/tags/
+##
+image: gitlab/gitlab-ce:8.13.3-ce.0
We should bump this to 8.13.9 or 8.14.4.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#202 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEnJIw5dp5ixU-r9UhiaZoVv6Dek-mjks5rHYjngaJpZM4KqMYb>
.
|
This PR adds a basic GitLab Community Edition chart. This is the barest of bones out of the gates. Most of the values and the structure are based off of GitLab's official OpenShift template.
We'll need to see how people use this and what we need to make configurable. I suspect that serious users are going to end up needing to fork this chart on their own, though. The sheer number of configurable values is high enough that we may never obtain and maintain full coverage without getting convoluted or out of date with upstream.
Some implementation notes:
GITLAB_OMNIBUS_CONFIGenv var for the vast majority of its config. I had initially created a ConfigMap and substituted values in via templating, but this left sensitive secrets exposed. I ended up sticking RubyENV['blah']calls in the ConfigMap and passing the values and secrets in there. This should give us thekubectl describe pod <>output that most expect, while "protecting" our secrets (if k8s fixes up Secrets!).externalUrlbe passed in at installation. NOTES.txt and deployments.yaml work similarly to the minecraft chart's EULA enforcer in that they'll get a big error and a non-functioning deploy if they don't pass it in. Instructions are included on how to get out of this state.👓 @viglesiasce @prydonius @stanhun001