dunhanson:
我是用 k8s 部署的 gitlab,gitlab 自带的 nginx 是关闭的
clone 地址已经修改( Admin Area > General > Custom Git clone URL for HTTP(S))
---
apiVersion: v1
kind: Service
metadata:
name: gitlab
namespace: default
spec:
clusterIP: None
selector:
app: gitlab
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitlab
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
spec:
tls:
- hosts:
- gitlab.******.com
secretName: gitlab
rules:
- host: gitlab.******.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitlab
port:
number: 80
- 本文固定链接: https://niul.net/44.html
- 转载请注明: 分享菌 于 牛叻网(NiuL.Net) 发表