Skip to content

Instantly share code, notes, and snippets.

@satishchennu1
satishchennu1 / gist:3878af2650bf0e8ac053ad120c84d74d
Created March 19, 2020 14:06
Jaeger Monitoring for tracing
Jaeger Monitoring for tracing
a) https://itnext.io/when-istio-meets-jaeger-an-example-of-end-to-end-distributed-tracing-2c136eb335eb
b) https://medium.com/swlh/microservices-observability-with-distributed-tracing-32ae467bb72a
c) https://developers.redhat.com/blog/2017/07/10/using-opentracing-with-jaeger-to-collect-application-metrics-in-kubernetes/
@satishchennu1
satishchennu1 / Tips to pass Certified Kubernetes Application Developer (CKAD) exam
Last active July 15, 2022 12:08
Tips to pass Certified Kubernetes Application Developer (CKAD) exam
Tips to pass Certified Kubernetes Application Developer (CKAD) exam
Getting started Kubernetes :-
a) Book : Kubernetes: Up & Running
b) Practice practice & practice with CKAD Exercises
the Best Kubernetes CKAD sample exercises which cover all parts of the exam https://github.com/dgkanatsios/CKAD-exercises.
c) Again, the best practice is use kubectl command well. Use kubectl to create resources (such as deployment, service, cronjobs, secret, configmap…) instead of creating them from manifest files.
Incase you have to edit manifest, use dry-run and -o yamlto save yaml file then edit manifest files.
d) Kubernetes in Action by Mario Luksa. The book is the holy bible of Kubernetes, and it basically answer all questions you may have ;
e) Whether or not you use Kubernetes at work, you should still provision your own cluster somewhere and play with it.
@satishchennu1
satishchennu1 / Install and configure maven
Created March 2, 2020 21:28
Install and configure maven
Move to home folder and create a new folder for maven artifacts:
cd ~ && mkdir installed-packages
Go to https://maven.apache.org/download.cgi and wget the latest artifact:
If you don't have wget installed: sudo yum install -y wget
cd ~/installed-packages
wget http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
Uncompress the downloaded file:
tar -xvf apache-maven-3.6.3-bin.tar.gz
Create a symbolic link of the uncompressed file:
ln -s ~/installed-packages/apache-maven-3.6.3 /usr/local/apache-maven
@satishchennu1
satishchennu1 / Ansible
Last active March 17, 2020 16:22
Ansible Documentation
Ansible Documentation :
1. https://blog.ssdnodes.com/blog/step-by-step-ansible-guide/
2. https://www.devopsroles.com/ansible-playbook-nginx-php/
3. https://www.digitalocean.com/community/tutorials/how-to-use-ansible-roles-to-abstract-your-infrastructure-environment
4. https://medium.com/@OpcitoTechnologies/how-to-write-ansible-roles-and-publish-them-on-ansible-galaxy-e750cd457619
5. Ansible for the Absolute Beginner - Hands-On - DevOps
6. Ansible + Openshift --> https://www.ansible.com/resources/videos/ansible-openshift-application-deployment-into-container-platform
7. Best ansible video --> https://www.ansible.com/resources/webinars-training/introduction-to-ansible
8. Good Books for ansible
@satishchennu1
satishchennu1 / gist:d8ee8075bb072712fda9a89765cc5803
Created January 16, 2020 16:11
Redhat Openshift 4.2 upgrade using CLI
1. oc get clusterversion
2. review the current update channel information and confirm that your channel is set to stable-4.2:
oc get clusterversion -o json|jq ".items[0].spec"
{
"channel": "stable-4.2",
"clusterID": "990f7ab8-109b-4c95-8480-2bd1deec55ff",
"upstream": "https://api.openshift.com/api/upgrades_info/v1/graph"
}
3.View the available updates and note the version number of the update that you want to apply
@satishchennu1
satishchennu1 / gist:a8925d07399aa2d9aca0581f779c08b6
Last active May 5, 2020 22:09
knative configuration on openshift
https://redhat-developer-demos.github.io/knative-tutorial/knative-tutorial-basics/0.7.x/04-scaling.html#scaling-scale-to-zero
https://blog.openshift.com/knative-serving-your-serverless-services/?extIdCarryOver=true&sc_cid=701f2000001OH7TAAW
https://codelabs.developers.google.com/codelabs/knative-intro/index.html?index=..%2F..index#13
https://github.com/nikhilbarthwal/knative
https://learning.oreilly.com/library/view/knative-cookbook/9781492061182/ch07.html
knative deployment
a) we will deploy our first application on the Knative framework
Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy
How to verify?
$ more /etc/group | grep deploy
Program 2 - Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.
How to verify?
$ more /etc/passwd | grep deploy-user
Program 3 – Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos.
How to verify?
$ which httpd
program 4 - Program 4 – Write a Ansible Adhoc commands to start and enable the service named “httpd”
I am trying to install gremlin on my openshift using kubernates environment .
Was able to do both the steps
Step 1: Downloading your Gremlin client certificates
a) Navigate to Team Settings and click on your Team. Click the blue Download button to save your certificates to your local computer
step 2: Set up your Gremlin credentials
gremlin account (sign up here) you will need to get your Gremlin Daemon credentials. Login to the Gremlin App using your Company name and sign-on credentials