Monthly Archives: November 2017

How to configure nginx on kubernetes 1.8.1 as ingress controller

What is an Ingress controller An ingress controller is component in the kubernetes cluster that manages the trafic coming into the cluster. Through ingress configurations you can define the rules to access the containers in you pod. For more info refer to the official documentation. Default backend A default backend is required so ingress can redirect… Read More »

How to configure dashboard on kubernetes 1.8.1

Dashboard Kubernetes offers a dashboard where you can visualise the status of you cluster, as you can see from the picture below you have a global view of everything running on the cluster. The following configuration, is not the most secure, this is for simplicity and you can always disable it by simply running kubectl delete -f dashboard.yaml.… Read More »

Configure NIC bonding in CentOS 7 / RHEL 7

NIC bonding is an efficient method to increase the available bandwidth of a server. NIC (Network Interface Card) bonding is also known as Network bonding. It is a combination of two or more NICs into a single bond interface. Two NICs appear to be the same physical device, and hence they have same MAC address when… Read More »

Jenkins cli add user

jenkins-groovy-scripts Credentials Decode hashed secret println(hudson.util.Secret.decrypt(“ENCODED_VALUE”)) Encode value println(hudson.util.Secret.fromString(“alamakota”).getEncryptedValue()) echo ‘println(hudson.util.Secret.fromString(“loremIpsum”).getEncryptedValue())’ | java -jar ./.cli/jenkins-cli.jar -s http://localhost:8080/ groovy = Run script which shows all credentials: java -jar /var/lib/jenkins/.cli/jenkins-cli.jar -s http://localhost:8080 groovy /opt/groovyScripts/show-all-credentials.groovy Show selected credentials as xml java -jar /var/lib/jenkins/.cli/jenkins-cli.jar -s http://localhost:8080 get-credentials-as-xml “SystemCredentialsProvider::SystemContextResolver::jenkins” “(global)” CREDENTIAL ID Create credentials domain: cat /opt/provision/domain.xml | java -jar… Read More »

Multiple SSH Keys settings for different github account

create different public key create different ssh key according the article Mac Set-Up Git $ ssh-keygen -t rsa -C “[email protected]” Please refer to github ssh issues for common problems. for example, 2 keys created at: ~/.ssh/id_rsa_activehacker ~/.ssh/id_rsa_jexchan then, add these two keys as following $ ssh-add ~/.ssh/id_rsa_activehacker $ ssh-add ~/.ssh/id_rsa_jexchan you can delete all cached keys before $… Read More »

Kubernetes Networking

Network Model The Kubernetes network model outlines three methods of component communication: Pod-to-Pod Communication Each Pod in a Kubernetes cluster is assigned an IP in a flat shared networking namespace. This allows for a clean network model where Pods, from a networking perspective, can be treated much like VMs or physical hosts. Pod-to-Service Communication Services… Read More »