当前位置:网站首页>Kubernetes 1.20.5 helm installation Jenkins
Kubernetes 1.20.5 helm installation Jenkins
2022-06-24 17:05:00 【I have nothing to do with you】
Initial environment
kubeadm build kubenretes 1.20.5 Clusters are as follows
front https://www.yuque.com/duiniwukenaihe/ehb02i/dkwh3p Installed when cilium hubble Installed when helm3.
Storage integrates Tencent cloud Of cbs Block storage
The Internet ? traefik agent ( pure http, All certificates to Tencent cloud load balancing clb 了 )
Prepare the integration plan cicd Or go through the traditional jenkins github spinnaker These kinds of integration . First, build a basic environment . From jenkins Here we go
1. Again helm3 Installation
1. download helm Applications
https://github.com/helm/helm/releases
Now the latest version 3.5.3 Well ? Find the package download of the corresponding system platform
2. install helm
Upload tar.gz Package to server ( I am a master Random nodes are OK )
tar zxvf helm-v3.5.3-linux-amd64.tar.gz mv linux-amd64/helm /usr/bin/helm
ok helm Installation successful
2. jenkins Configuration and installation of
2.1. helm add to jenkins Warehouse . and pull Next jenkins Version pack
helm repo add jenkins https://charts.jenkins.io helm pull jenkins/jenkins # My version is still 3.3.0 The same goes for other versions tar zxvf jenkins-3.3.0.tgz
2.2. Change... According to personal needs value.yaml
cd jenkins Catalog , take values.yaml The installation needs to be changed
The individual has modified clusterZone And the default storage uses Tencent cloud's cbs.
3. helm install jenkins To designate namespace
3.1. Normal installation process
kubectl create ns kube-ops helm install -f values.yaml jenkins jenkins/jenkins -n kube-ops
3.2. Installing int Download plug-ins waiting for too long
Downloading plug-ins is a mess , Can't wait for time to value.yaml The process of installing plug-ins in the file is commented out .
Comment out install Install the plug-in manually behind
I commented it out and deleted it helm The deployment process has been restarted .
helm delete jenkins -n kube-ops helm install -f values.yaml jenkins jenkins/jenkins -n kube-ops
As expected, the comment is deleted and the system is started directly
4. Some things after initialization
4.1. wait for pod Initialization startup complete
4.2 The initialization password is log Search for
Look for the password in the traditional way first :
kubectl logs -f jenkins-0 jenkins -n kube-ops
Well, the password isn't there log Medium
4.3. Get it right jenkins The way of initial password secret
printf $(kubectl get secret --namespace kube-ops jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
5. traefik agent jenkins application
(https://www.yuque.com/duiniwukenaihe/ehb02i/odflm7 The way of construction and agency has been indicated above )
Still used to ingressroute agent jenkins
cat jenkins-ingress.yaml
apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: namespace: kube-ops name: jenkins-http spec: entryPoints: - web routes: - match: Host(`jenkins.saynaihe.com`) kind: Rule services: - name: jenkins port: 8080
kubectl apply -f jenkins-ingress.yaml
6. web visit jenkins application
6.1. land jenkins web
what I didn't enter the account and password ? I don't know why I can log in for the first time after initialization without a password .......
6.2 Change security settings , Users are not allowed to log in anonymously
Create the initial administrator user
6.3 Install Chinese plug-in
OK Start installing the plug-ins , Install the Chinese plugin first , Restart after installation ....
The Chinese plug-in installation is completed . Well, my personal password is still valid here ......
6.4 Install it. helm Plug ins masked during initialization
Then helm Manually install the initialization plug-ins shielded in ? Just install the following four plug-ins manually . It's also common kubernetes plug-in unit .
Wait until it's done . restart jenkins application
7. Colored eggs
Um. My password is wrong after restart ...what
With the idea of trying, I drove into above 4.3 What I got in step key ok Went in. .....
Here is a simple record of the application installation process , Concrete jenkins libraries pipeline and kubernetes spinnaker gitlab All the environments such as the integration of have been built and written together .
边栏推荐
- New MySQL 8.0 feature - enhanced logical backup recovery
- [playing with Tencent cloud] a solution to the impassability of cross-border access to foreign websites using Tencent cloud CVM
- What is a server
- Regular expression learning artifact!
- Snapshot management for elastic cloud enterprise
- 06. Tencent cloud IOT device side learning - Introduction to basic functions
- TCB series learning articles - using redis extension in cloud functions
- A tutorial on how the zblog system obtains user related information based on user ID
- Complete the log service CLS questionnaire in 1 minute and receive the Tencent cloud 30 yuan threshold free voucher ~
- The TKE cluster node reports an error when executing kubectl
猜你喜欢
[leetcode108] convert an ordered array into a binary search tree (medium order traversal)
A survey on model compression for natural language processing (NLP model compression overview)
A survey of training on graphs: taxonomy, methods, and Applications
MySQL learning -- table structure of SQL test questions
Daily algorithm & interview questions, 28 days of special training in large factories - the 15th day (string)
A survey on dynamic neural networks for natural language processing, University of California
随机推荐
Ramda's little-known side
Saying "Dharma" Today: the little "secret" of paramter and localparam
What is the reason for the worse website SEO ranking?
[play with Tencent cloud] & lt; trtc-room> Applet component usage
究竟有哪些劵商推荐?现在网上开户安全么?
[security] graphical CSRF injection of Web Security (II)
Tensor and tensor network background and significance - basic knowledge
liver failure! My friend made a programming navigation website!
Customizing security groups using BPF
[tke] nodelocaldnschache is used in IPVS forwarding mode
Go kit microservice integrates Promtheus to solve monitoring alarm problems
TVP experts talk about geese factory middleware: innovating forward and meeting the future
[web] what happens after entering the URL from the address bar?
How to get the response body content in gin?
Complete the log service CLS questionnaire in 1 minute and receive the Tencent cloud 30 yuan threshold free voucher ~
Druid architecture and Implementation
Solution to the problem that qlineedit setting qdoublevalidator setting range is invalid
Release! Tencent IOA and Tencent sky screen were selected into the first batch of certified products of domestic digital trusted services
How does the easynvr/easygbs live video platform use Wireshark to capture and analyze data locally?
Markdown syntax -- Formula