Skip to content

Instantly share code, notes, and snippets.

View udyvish's full-sized avatar
🎯
Focusing

Uday udyvish

🎯
Focusing
View GitHub Profile
sudo journalctl -u kubelet -n 2000 --no-pager
-- Logs begin at Fri 2020-05-15 07:56:11 EDT, end at Fri 2020-05-15 15:32:58 EDT. --
May 15 15:26:13 two-k8sm-0 kubelet[4523]: E0515 15:26:13.203342 4523 kubelet_node_status.go:92] Unable to register node "two-k8sm-0" with API server: Post https://192.168.1.36:443/api/v1/nodes: dial tcp 192.168.1.36:443: connect: connection refused
May 15 15:26:13 two-k8sm-0 kubelet[4523]: I0515 15:26:13.276972 4523 reconciler.go:254] operationExecutor.MountVolume started for volume "etc-pki-tls" (UniqueName: "kubernetes.io/host-path/a2126bea5a82d3a47ce85181aeeb2846-etc-pki-tls") pod "kube-apiserver-two-k8sm-0" (UID: "a2126bea5a82d3a47ce85181aeeb2846")
May 15 15:26:13 two-k8sm-0 kubelet[4523]: I0515 15:26:13.277007 4523 reconciler.go:254] operationExecutor.MountVolume started for volume "ca-certs" (UniqueName: "kubernetes.io/host-path/06cefdfd9da3719520e6220b3609d625-ca-certs") pod "kube-controller-manager-two-k8sm-0" (UID: "06cefdfd9da3719520e6220b3609d625")
May 15 15:26
@udyvish
udyvish / self-signed-certificate-with-custom-ca.md
Created June 20, 2018 06:33 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@udyvish
udyvish / kill_all_stuck_jenkins_jobs.groovy
Created January 17, 2018 00:32
the below script kills all the jobs which are stuck
Jenkins.instance.getItems().each { job ->
job.builds.each { build ->
if (build.getResult().equals(null)) {
build.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
}
}
}