In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Add a helm source
Helm repo add stable https://kubernetes-charts.storage.googleapis.com
Helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
Helm repo add apphub https://apphub.aliyuncs.com/
2. Download gitlab-ce
Helm pull stable/gitlab-ce
Tar-zxvf gitlab-ce-0.2.2.tgz
3. Modify values.yaml file
4. Installation
Helm install gitlab gitlab-ce
Note: since I am the latest 16.3 cluster, an error will be reported here. If you are below 16, there will be no error here.
Grep-irl "extensions/v1beta1" gitlab-ce | grep deployment
Grep-irl "extensions/v1beta1" gitlab-ce | grep deploy | xargs sed-I's expansion extension of xargs sed-I's expansion extension of V1beta1 incremental appsl and v1millig'
# in the process of installation, the error is that the existing K8s does not support deployment spec of gitlab-ce
Helm install gitlab gitlab-ce
Grep-irl "apps/v1" gitlab-ce | grep deployment
Modify the configuration file in turn:
Vim gitlab-ce/templates/deployment.yaml
Add:
Replicas: 1
Selector:
MatchLabels:
App: {{template "gitlab-ce.fullname". }}
Vim gitlab-ce/charts/postgresql/templates/deployment.yaml
Add:
Selector:
MatchLabels:
App: {{template "postgresql.fullname". }}
Vim gitlab-ce/charts/redis/templates/deployment.yaml
Add:
Selector:
MatchLabels:
App: {{template "redis.fullname". }}
Installation is in progress
Helm install gitlab gitlab-ce
5. Check the cluster status
Kubectl get pod
# since resources need to request a pv, we also need to create a pv
Kubectl get pv
Kubectl get pvc
# create a hostpath in the worker node and hang it in the directory
Mkdir-p / data/gitlab/pv {1.. 4}
Create a pv file in the master node
[root@node1 pv] # cat pv1.yaml apiVersion: v1kind: PersistentVolumemetadata: name: gitlab-pv1spec: capacity: storage: 10Gi volumeMode: Filesystem accessModes:-ReadWriteOnce persistentVolumeReclaimPolicy: Retain hostPath: path: / data/gitlab/pv1
Check the cluster status again
Login Page
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.