|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
# GitLab Autodevops guides
|
|
# GitLab Autodevops guides
|
|
|
This is a document made to help with configuring GitLab autodevops. This document contains following guides:
|
|
This is a document made to help with configuring GitLab autodevops. This document contains following guides:
|
|
|
|
|
|
| ... | @@ -24,3 +27,28 @@ gitlab_rails['omniauth_external_providers'] = ['google_oauth2'] |
... | @@ -24,3 +27,28 @@ gitlab_rails['omniauth_external_providers'] = ['google_oauth2'] |
|
|
(this is mentioned in a [link](https://docs.gitlab.com/ee/integration/omniauth.html#initial-omniauth-configuration) under **step 2**)
|
|
(this is mentioned in a [link](https://docs.gitlab.com/ee/integration/omniauth.html#initial-omniauth-configuration) under **step 2**)
|
|
|
|
|
|
|
|
## Creating a Kubernetes cluster from within GitLab
|
|
## Creating a Kubernetes cluster from within GitLab
|
|
|
|
|
|
|
|
To create a Kubernetes cluster follow the official guide [here](https://docs.gitlab.com/ee/topics/autodevops/quick_start_guide.html#creating-a-kubernetes-cluster-from-within-gitlab)
|
|
|
|
|
|
|
|
**Note** :exclamation that you need to have [Google OAuth2](#google_oauth2) enabled befor continuing.
|
|
|
|
|
|
|
|
If you are facing following issue:
|
|
|
|
|
|
|
|
```
|
|
|
|
Something went wrong while installing Helm Tiller
|
|
|
|
|
|
|
|
ssl_client: kubernetes-helm.storage.googleapis.com: TLS connect failed wget: error getting response: Connection reset by peer tar: invalid magic tar: short read
|
|
|
|
```
|
|
|
|
Run these following commands on your machine that is running gitLab
|
|
|
|
|
|
|
|
```
|
|
|
|
docker exec -it gitlab bash -c 'perl -i -pe s/alpine:3.6/alpine:3.7/ /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/kubernetes/helm/pod.rb'
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
docker exec -it gitlab bash -c 'perl -i -pe "s/ca-certificates openssl/ca-certificates openssl wget/" /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/kubernetes/helm/base_command.rb'
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
docker exec -it gitlab bash -c 'gitlab-ctl restart'
|
|
|
|
``` |