#------------------------定义代理服务------------------------- apiVersion: v1 kind: Service metadata: name: gitlab spec: type: NodePort ports: # Port上的映射端口 - port: 443 targetPort: 443 name: gitlab443 - port: 80 targetPort: 80 name: gitlab80 - port: 22 targetPort: 22 name: gitlab22 selector: app: gitlab --- # ------------------------定义Gitlab的部署 ----------------------- apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 kind: Deployment metadata: name: gitlab spec: selector: matchLabels: app: gitlab revisionHistoryLimit: 2 template: metadata: labels: app: gitlab spec: con
K8s部署gitlab/gitlab-ce
Kubernetes部署GitLab服务
最新推荐文章于 2025-09-24 20:27:30 发布

最低0.47元/天 解锁文章
6072

被折叠的 条评论
为什么被折叠?



