Thursday 4 November 2021

Gokarna - a budding tourist spot

 It was during the 2021 Diwali holidays and the covid situation was within the control; the initial thought was to go to Goa but it will be overcrowded during the Nov and Dec month and when thought about the alternative we decided to go to Gokarna.

Gokarna beach view from one
of the restaurant in Kudlu beach road

Once Gokarna was mainly the place for workship and performing last rites but in recent few years, it started attracting tourists who like adventures, trekking, water activities, a weekend stay apart from the pilgrimage visit. Gokarna has numerous beaches and each has its own beauty, history, purpose; for example, the main Gokarna beach is used as a pilgrimage site for performing pooja and taking a spiritual bath, the Kudle beach is used for water sport activities, the paradise, and Halfmoon beach hosts tent stay.

Tent stays in Paradise beach


Halfmoon beach where we took bath


All the beaches are well maintained but accessibility wise except Gokarna beach all others require a trek or a boat to reach. The water on the beaches is so clear and transparent, in almost all beaches they have a warning sign of sea vortex. However, than the vortex, the real danger we experienced is by the jellyfishes. It is good to see and observe the jellyfish when we are in the boat but it is really very dangerous when they hit us. Even the slightest touch by the jellyfish will cause skin allergy and will cause pain for a minimum of 30 mins. 

Ferry from Kumta to Gokarna

Jellyfish seen from the ferry




Now coming to the stay, the Kumta is known for lots of private beach resorts and is located 30 km from Gokarna. One such resort is the Silver Sand Beach resort and we stayed there, it is located on the beach so anytime we can go to the beach and take bath, play. If looking to stay closer to Gokarna then there are lots of good stays available on the Kudlu beach road.

The water activities include Banana rides, bumper rides, kayaking, JetSki. There is only one organizer Mystic Gokarna and the prices are a little expensive. Since there is no competitor, bargaining doesn't help. On their website, they mentioned lots of activities but most of them are not available or will be under maintenance. Also, we noticed there was a lack of coordination between the booking counter and the ride conductor. We can take bath on any of the beaches, the beaches like Halfmoon, paradise will be less crowded whereas Om beach and Kudlu beach will be very crowded. The Om beach got its name because of the shape of the beach resembling the Sanskrit Om. 

Water activities in Kudlu beach




Apart from water activities, Gokarna is famous for trekking. It has lots of trekking sites and caves. It has one such cave called Gogarbha and history says that it contains a tunnel to reach Kashi.

Definitely, we should not miss the Maha Ganapati and Mahabaleswar temple; I have never seen a standing Ganapati so far, and here is the first time I saw Ganapati in a standing position in Maha Ganapati temple. Just a few steps away is the famous Mahabaleswar Shiva temple and the temple complex has a shrine for Athmalinga, Devi, and other Gods. There is a strict dress code for men and women to enter the Mahabaleswar temple.

If traveling to Gokarna from Bangalore via road then a short diversion to Jog falls is something not to miss and plan to spend at least 2-3 hours in the Jog to enjoy the complete view and to connect with nature.


The shortcomings of Gokarna are, it is not a mature tourist-friendly place. Getting food of choice is very limited and tastes average, accessibility from one place to another is not so easy. Not all local people are friendly enough for approaching.








Sunday 15 August 2021

Manacherry dam - One of the dam in Kaveri river

The saying 'We do not know the value when something is close to us' is absolutely true and the lockdown and travel restrictions makes us explore local places and helped us understand the value of nearby places. 

Recently went to these two places without any expectation and to our surprise, we enjoyed ourselves a lot and spent more time than we planned. 

  1. Manacherry dam - https://goo.gl/maps/xrsNdAB2Wuw4QvWt8
  2. Shri Akaasa Vinayakar Temple -  https://goo.gl/maps/ptiYZpNmXZqggTCy8

Sir C.V.Raman told Water is the elixir of life and the rivers are the main reason for civilization, both these places I mentioned above are special for the same reason as it is water abundant place. 

It is in Jul-Aug time of the year and dams are opened irrigation so we can witness the full flow of water in the Kaveri river. When it comes to visiting the Kaveri river dams, we always think of KRS Dam, Kabini Dam, Mettur Dam, Kallanai, of course, all these dams are infrastructural marvels that stand strong for hundreds and hundreds of years and some stands thousands of years like Kallanai. We rarely think of the numerous number of small dams that control the flow of water and hardly visit them. 

One such small dam is the Manacherry dam in Kumbakonam, it is a beautiful place where the Kaveri river divides into Kaveri and Veeracholan rivers. The place is very well maintained and the footsteps in the river bank are clean, we could see a group of children enjoying their day playing in the river water and the other side group of youngsters trying their luck in fishing. As I mentioned the river getting divided, we can go to the land dividing two rivers via the dam structure. 

Some activities we can do are, get down into the river and play with the water, take bath, take nice photos, enjoy nature sights, have some lite snacks or lunch under the tree. There is a temple between the two rivers and we can do meditation as there is no other sound except the sound of water flow!

Its a nostalgic moment for me as I visited this place when I was in school (1999) and visited it again in the year 2021. This visit taught me the below lessons

1. Value of a tree

Its hot summer but when we sit under a tree which is branched out very well near the river bank, we will not feel the hotness of the sun.  

2. Value of a not so famous place

During the covid restriction, it is not encouraged to visit famous attractions. And local places like these are good as it hardly have crowds and we don't have to travel so far.

3. Value of time

It was all like just yesterday I finished school but when I look back, it be already 20 years passed from the time I completed my high-school.

Below are some of the snaps taken in this place

Stream of water from the dam

In the park between the two rivers




Playing in the water stream


Beautiful view of river from the dam

Dam Structure




Temple situated between the two rivers



In the next post I will write about the Shri Akaasa Vinayakar Temple


Tuesday 6 July 2021

Accessing kube-apiserver from a running pod / Doing a kubectl from a pod

Rarely we want our POD to talk to the kube-apiserver to fetch details about the other deployments, pod status etc. This is not a common usecase but the option provided by K8S can be used in a very creative way to solve problem when a running pod want to know information about the cluster

The logic is very simple, we use the ** kubectl ** command to talk to the kube-apiserver and access the cluster, the kubectl client maintains the details about the cluster in ~/.kube/config directory. And if we want to access the same from the pod then even the pod should contain all the configurations about the cluster so it can access the kube-apiserver

The good news is when kubernetes brings up the pod it mounts all the necessary folder that contains configuration, certificate etc and it will have one default service account attached to the pod. The default service account is authorized to access only a very limited resouce from kube-apiserver

We can create a new service account and authorize it to access additional resources by creating the following items

  1. ServiceAccount
  2. ClusterRole / Role
  3. ClusterRoleBinding / RoleBinding

Choosing between Role and ClusterRole depends on whether we want to access the resource at own namespace only or we need access resources cluster-wide

Usecase: Getting the deployment details from the POD

In this use-case, we are trying to read all the deployments available in the same namespace where the POD is running

Service Account

The first step is to create the service account, it is like a user which we will bind to the role and use it in the deployment/pod

kubectl create sa apps-sa -n vemohanr --dry-run -o yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  creationTimestamp: null
  name: apps-sa
  namespace: vemohanr

Role

We can create one role mentioning about all the resources we need to access or we can create one role per resource.

kubectl create role deployment-reader --verb=list,get --resource=deployment -n vemohanr --dry-run -o yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  creationTimestamp: null
  name: deployment-reader
rules:
- apiGroups:
  - apps
  resources:
  - deployments
  verbs:
  - list
  - get

Role Binding

Resource binding is the place where we will tie the service account with the role

kubectl create rolebinding apps-sa-deployment-reader --serviceaccount=vemohanr:apps-sa --role=deployment-reader -n vemohanr --dry-run -o yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  creationTimestamp: null
  name: apps-sa-deployment-reader
  namespace: vemohanr
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: deployment-reader
subjects:
- kind: ServiceAccount
  name: apps-sa
  namespace: vemohanr

Attach the Service Account to the POD

We need to attach the service account with the deployment so it will get granted access based on the role it is binded with

apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: ubuntu
  name: ubuntu
  namespace: vemohanr
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ubuntu
  template:
    metadata:
      labels:
        app: ubuntu
    spec:
      serviceAccountName: apps-sa
      containers:
      - image: iad.ocir.io/paasdevoic/vemohanr/ubuntu:latest
        name: ubuntu
        command:
        - "sh"
        - "-c"
        - "sleep 10000"
      imagePullSecrets:
      - name: ocirsecret

Quick Testing

For quick testing we can get inside this ubuntu POD and execute the curl command

$ kubectl exec -it ubuntu-5d8cc9cfdf-cxzls -n vemohanr -- sh
$ APISERVER=https://kubernetes.default.svc
$ SERVICEACCOUNT=/var/run/secrets/kubernetes.io/serviceaccount
$ NAMESPACE=$(cat ${SERVICEACCOUNT}/namespace)
$ TOKEN=$(cat ${SERVICEACCOUNT}/token)
$ CACERT=${SERVICEACCOUNT}/ca.crt
$ CACERT=${SERVICEACCOUNT}/ca.crt
$ curl --cacert ${CACERT} --header "Authorization: Bearer ${TOKEN}" -X GET ${APISERVER}/api/apis/apps/v1/deployments

Client Libraries

There are client libraries available in most of the language and we can get info about it from https://kubernetes.io/docs/reference/using-api/client-libraries/

Reference

https://kubernetes.io/docs/tasks/run-application/access-api-from-pod/ https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Saturday 29 May 2021

How to grow Rose plant from cut stem

 In this post, I want to share how we can nurture the rose stem and grow it into a plant. The most important one that we need is patience because it will take 2-3 weeks at least to see the result. The real fun is on seeing how the soil and the necessary environment is giving nutrients to the cut stem and makes into a plant and we could see it growing day-by-day. 

The technique that I experimented is the greenhouse gardening technique where we will cover the whole pot inside a plastic cover so it can allow the visible light into the pot but will not allow the heat outside and keep the environment warmer.

Interesting read about the Greenhouse 

https://www.proflowers.com/blog/greenhouse-gardening-guide/
http://hyperphysics.phy-astr.gsu.edu/hbase/thermo/grnhse.html

Also since the stem do not contain the roots, we can help the stem to get root faster by using some rooting hormones. Few of the natural rooting hormones are natural honey, alovera plant gel, tulsi water etc, basically any natural product which has anti-bacterial and anti-fungal properties can be used. We can also use artificial rooting hormones as well but natural one does pretty well. The function of the rooting hormone is to protect the stem from bacteria, diseases etc. 

Interesting read about rooting harmones

https://www.urbangardengal.com/honey-rooting-hormone-cuttings/

Next is the selection of stem, we should select a healthy stem so the success rate will be high. The healthy rose stem are the one that are dark green in color without any black spots, no fungus etc. 

Lets see the process in sequence of steps

Step 1: Identify the healthy stem from the parent plant 

Step 2: Keep all the necessary tools and materials ready like the pot, scissor, knife, rooting harmone, cover etc

Step 3: Cut the stem into multiple small pieces, desirable not more than an 5-6 inches. And cut it at a 45 degree angle

Step 4: Clean the side of stem which we will insert in the soil

Step 5: Dip the side with the rooting harmone

Step 6: Keep the pot ready with right mix of soil and water. Most important info is we should not water the plant after inserting the stem, so add necessary water before inserting the stem. The reason is that if we pour water then the root harmone will disolve and get mixed into the soil.

Step 7: Insert the cut stem into the pot with some distance between them

Step 8: Cover the pot with a plastic cover and keep it in a low sunlight shade. When it is in greenhouse effect we don't have to water them everyday. The moisture will circulate within the closed area and will keep the soil wet.

Step 9: After a week we can open and check its health and cover it again

Step 10: After 2 weeks, once we see the leaves, we can make a small hole in the cover to allow leaves to get some fresh air to breath

Step 11: After 3 weeks, we can remove the greenhouse effect and either repot it or grow in the same pot

Happy Gardening!!

Wednesday 27 January 2021

Database - Oracle Cloud Infrastructure - Architect Associate(1Z0-1072-20)

 Oracle Cloud Infrastructure Architect Associate exam tests varieties of topics like

  1. Identity and Access Management
  2. Networking
  3. Compute 
  4. Storage
  5. Database
A good place to learn about the topics are


And there is a book specifically written for the exam and is available in Oreilly




In this blog, I am sharing the notes I have taken for the topic 

Database

Storage - Oracle Cloud Infrastructure - Architect Associate(1Z0-1072-20)

 Oracle Cloud Infrastructure Architect Associate exam tests varieties of topics like

  1. Identity and Access Management
  2. Networking
  3. Compute 
  4. Storage
  5. Database
A good place to learn about the topics are


And there is a book specifically written for the exam and is available in Oreilly

In this blog, I am sharing the notes I have taken for the topic 



Storage

Compute - Oracle Cloud Infrastructure - Architect Associate(1Z0-1072-20)

  Oracle Cloud Infrastructure Architect Associate exam tests varieties of topics like

  1. Identity and Access Management
  2. Networking
  3. Compute 
  4. Storage
  5. Database
A good place to learn about the topics are


And there is a book specifically written for the exam and is available in Oreilly

In this blog, I am sharing the notes I have taken for the topic 



Compute 

Networking - Oracle Cloud Infrastructure - Architect Associate(1Z0-1072-20)

  Oracle Cloud Infrastructure Architect Associate exam tests varieties of topics like

  1. Identity and Access Management
  2. Networking
  3. Compute 
  4. Storage
  5. Database
A good place to learn about the topics are


And there is a book specifically written for the exam and is available in Oreilly

In this blog, I am sharing the notes I have taken for the topic 



Networking

IAM - Oracle Cloud Infrastructure - Architect Associate(1Z0-1072-20)

 Oracle Cloud Infrastructure Architect Associate exam tests varieties of topics like

  1. Identity and Access Management
  2. Networking
  3. Compute 
  4. Storage
  5. Database
A good place to learn about the topics are


And there is a book specifically written for the exam and is available in Oreilly

In this blog, I am sharing the notes I have taken for the topic 



Identity and Access Management (IAM)

Tuesday 26 January 2021

Installing Ubuntu in Lenovo ideapad 130 laptop

Ubuntu is one of the most popular free Operating System and it contains lots of packages which makes it ideal for day to day operation.

If we want to have ubuntu alongside the windows OS then we can follow these steps

  • Ensure we have a separate partition in HDD other than the one where Windows is installed for installing Ubuntu OS. If there is only one partition available in the system follow the steps in the link to create a separate partition

https://www.businessinsider.com/how-to-partition-a-hard-drive-in-windows-10

  • The next steps are to prepare a USB stick with Ubuntu OS

https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview

  • Now we need to insert the USB and reboot the machine and follow the onscreen instruction

https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview