Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of connecting Kubernetes with jenkins

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Connect with Certificate:

cert.pfx generated by ~/.kube/config, jenkins connects k8s by cert.pfx

0. Generate ca.crt

echo '' "|base64 -d ><$/ca. crt (contents of certificate-authority-data in ~/.kube/config)

1. Create client.key

echo '' "|base64 -d > ~/client.key (content of client-key-data in ~/.kube/config)

2. Create client.crt

echo '' "|base64 -d ><$/client. crt (content of client-certificate-data in ~/.kube/config)

3. Generate cert.pfx

openssl pkcs12 -export -inkey client.key -in client.crt -certfile ca.crt -out cert.pfx

4. jenkins uploads pkcs12 file

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report