kubernetes
namespace
namespace
quota
sa.yml
generate credentials for pfx
ca.crt
client.crt & client.key
cert.pfx
full steps
configure in jenkins
[!NOTE]
url
by default:
http://<service-name>.<namespace>.svc.cluster.local:8080
Manage Jenkins->Configure SystemorManage Jenkins->Manage Nodes and Clouds->Configure CloudsAdd a new Cloud->KuberentesName:Kubernetes URL:get from
$ kubectl cluster-infousing
https://kubernetes.default.svc.cluster.local
Kubernetes server certificate key: content ofca.crt. ($ cat ca.crt)Credentials:Add->JenkinsKind:
Certificate

plugin-1 
plugin-2 
plugin-3 
plugin-4 setup in jenkins

plugin-5
using kubeconfig for remote cluster credential
get Kubernetes URL
generate CA
or
Generate token in kubernetes
setup sa
setup in Jenkins
credential setup

cloud setup

using ClusterRoleBinding
[!TIP] simplely it can be executed via commands:
[!NOTE]:
<role-binding-name>can be the same as<service-account>
using RoleBinding
pull with credentials
[!NOTE|label:references:]
in kubernetes
copy secrets to all namespaces
in podTemplate
Q&A
[!NOTE]
thinking
Last updated
Was this helpful?