Skip to main content

Posts

Showing posts from March, 2019

Manage GCP bucket using gsutil command

Installing Istio on Kubernetes Engine - Linux Guru

Istio is an open source framework for connecting, monitoring, and securing microservices, including services running on Kubernetes Engine. This tutorial shows you how to install and configure Istio on GKE and deploy an Istio-enabled multi-service application.

Before you begin : 
1. Kubectl.
2. gcloud auth.
3. kubernetes cluster.

Create Kubernetes Cluster.
Let's create first kubernetes cluster, Run the following command to create Kubernetes cluster in GCP.
$ gcloud container clusters create istio --machine-type=n1-standard-2 --num-nodes=3

Download and install Istio.
Go to the istio official page to download the installation file.
https://github.com/istio/istio/releases

Extract the istio downloded file. 

YAML file for kubernetes stores in install/ Directory.istioctl binary locate from bin/ directory.istioctl is used when manually injecting Envoy as a sidecar proxy and for creating routing rules and policies.

Move the istioctl file to the /usr/local/bin directory.
$ mv bin/istioctl /usr/local/bin/

Setup Kubernetes Dashboard - Linux Guru

Kubernetes Dashboard : Dashboard is a web-based Kubernetes user interface. You can use Dashboard to deploy containerized applications to a Kubernetes cluster, troubleshoot your containerized application, Setting up the dash board:$ kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/aio/deploy/recommended/kubernetes-dashboard.yaml Create user to access dashboard. We will create user using RABC for default namespace access. Create RABC yaml and apply it. apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: default --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: admin-user roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: admin-user namespace: default Save it and apply. $ kubectl apply -f user-rabc.yaml Now You can access kubernetes cluster via web browser but it will ask you for token. you can get…