Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. New Gitlab CE Cluster Configuration
  2.  
  3. Setup Helm and Tiller
  4.  
  5. kubectl create -f rbac-config.yaml
  6. helm init --upgrade --service-account tiller
  7. kubectl -n kube-system patch deployment tiller-deploy -p '{"spec": {"template": {"spec": {"automountServiceAccountToken": true}}}}'
  8.  
  9.  
  10. Setup UI
  11.  
  12. kubectl get secret -n kube-system
  13. kubectl describe secret your-username-token-12345 -n kube-system
  14. kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml
  15.  
  16. // URL : http://localhost:8080/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/login
  17.  
  18.  
  19.  
  20. Connect to Cluster
  21.  
  22. kubectl --kubeconfig='kubeconfig.yaml' --port=8080 proxy
  23.  
  24.  
  25. Prepare to copy SUPER FAST loadbalancer-ip into dns
  26.  
  27. Install Gitlab CE Cluster
  28. helm repo add gitlab https://charts.gitlab.io/
  29. helm repo update
  30. helm --namespace=gitlab upgrade --install gitlab gitlab/gitlab
  31. --timeout 600
  32. --set global.hosts.domain=jjztechnologies.com
  33. --set certmanager.install=true
  34. --set gitlab-runner.runners.namespace=gitlab
  35. --set gitlab-runner.runners.privileged=true
  36. --set global.ingress.annotations."kubernetes.io/tls-acme"=true
  37. --set certmanager-issuer.email=james@jjztechnologies.com
  38. --set gitlab.migrations.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-rails-ce
  39. --set gitlab.sidekiq.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-sidekiq-ce
  40. --set gitlab.unicorn.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-unicorn-ce
  41. --set gitlab.unicorn.workhorse.image=registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ce
  42. --set gitlab.task-runner.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-task-runner-ce
  43. --set gitlab.gitaly.persistence.size=100Gi
  44. --set minio.persistence.size=200Gi
  45. --set redis.persistence.size=25Gi
  46.  
  47. Initial Login
  48. kubectl --namespace=gitlab get secret gitlab-gitlab-initial-root-password -ojsonpath={.data.password} | base64 --decode ; echo
  49.  
  50. Add private registry auth
  51. kubectl --namespace=gitlab create secret docker-registry jjztechnologies-registry
  52. --docker-server=registry.jjztechnologies.com
  53. --docker-username=root
  54. --docker-password=Rg6Zp24vf8mtczcSX3kbc8KTANAsirMA7At9kqZa2gNHmOGh7w110yhU9h7Bc5lz
  55. --docker-email=james@jjztechnologies.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement