CI : Gitlab 설치 - TheOpenCloudEngine/uEngine-cloud GitHub Wiki
Gitlab 설치
> helm repo add gitlab https://charts.gitlab.io/
> helm repo update
> helm upgrade --install gitlab gitlab/gitlab --timeout 6000 --set global.hosts.domain=104.154.191.89.nip.io --set global.hosts.externalIP=104.154.191.89 --set [email protected] --set gitlab-runner.runners.privileged=true
고정IP
> gcloud compute addresses create gitlab-ip --region us-central1
> gcloud compute addresses describe gitlab-ip --region us-central1
- 104.154.191.89.nip.io 로 접속
접속 password 얻기
> kubectl get secret gitlab-gitlab-initial-root-password -ojsonpath={.data.password} | base64 --decode ; echo
- id: root, password 는 위에서 얻은 password
SA 만들기
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: gitlab-my-spring-boot-2
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: my-spring