kubernetes
references:
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 System
orManage Jenkins
->Manage Nodes and Clouds
->Configure Clouds
Add a new Cloud
->Kuberentes
Name
:Kubernetes URL
:get from
$ kubectl cluster-info
using
https://kubernetes.default.svc.cluster.local
Kubernetes server certificate key
: content ofca.crt
. ($ cat ca.crt
)Credentials
:Add
->Jenkins
Kind:
Certificate
setup in jenkins
using kubeconfig for remote cluster credential
get Kubernetes URL
generate CA
the content can be also found in
kubernetes-master:/etc/kubernetes/pki/ca.crt
or
Generate token in kubernetes
setup sa
setup in Jenkins
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