kubernates中的DevOps平台
小于 1 分钟
Harbor
## https://artifacthub.io/packages/helm/harbor/harbor
cat > values.harbor.yaml << EOF
expose:
type: ingress
ingress:
hosts:
core: docker.devops.kk
notary: harbor.devops.kk
externalURL: https://docker.devops.kk
harborAdminPassword: Harbor12345
EOF
helm repo add harbor https://helm.goharbor.io
helm repo update
helm install my-release harbor/harbor
helm upgrade harbor harbor/harbor --install --namespace devops --create-namespace --values values.harbor.yaml --version 1.11.2
GitLab
Nexus
helm repo add sonatype https://sonatype.github.io/helm3-charts/
helm repo update
helm search repo nexus
helm install nexus sonatype/nexus-repository-manager
SonarQube
cat <<EOF> my-values.yaml
sonarqubeUsername: admin
sonarqubePassword: "admin"
sonarqubeEmail: zhanghaijun@bjtxra.com
service:
type: ClusterIP
ingress:
enabled: true
ingressClassName: "nginx"
hostname: sonarqube.devops.kk
EOF
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install sonarqube bitnami/sonarqube --version 1.0.9 -f my-values.yaml
## 查看密码
kubectl get secret --namespace default sonarqube -o jsonpath="{.data.sonarqube-password}" | base64 --decode
## 卸载
helm uninstall sonarqube