Skip to content

Latest commit

 

History

History
102 lines (67 loc) · 1.83 KB

README.md

File metadata and controls

102 lines (67 loc) · 1.83 KB

Kubernetes cluster configuration

Requirements

  • Kubernetes cluster up and running
  • kubectl command line installed
  • istioctl command line installed
  • helm command line installed

Setup cluster

Configure Istio
istioctl install -f istio-config.yaml
Create namespace
kubectl create namespace apps
Set apps namespace as default
kubectl config set-context --current --namespace=apps
Declare Istio's gateways
kubectl apply -f gateways.yaml
Configure management ingress
kubectl apply -f management-ingress.yaml
Configure API ingress
kubectl apply -f apis-ingress.yaml

Setup Istio components

Configure Prometheus
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/prometheus.yaml
Configure Grafana
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/grafana.yaml
Configure Jaeger
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/jaeger.yaml
Configure Kiali
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/kiali.yaml

Setup namespace

Create environment ConfigMap
kubectl apply -f environment-config.yaml
Create namespace LimitRange object
kubectl apply -f limit-range.yaml
Enable Istio's automatic injection
kubectl label namespace apps istio-injection=enabled

Application setup

Install application
helm install APP_NAME ./equidis-application-0.0.0.tgz --values build-metadata.yaml

build-metadata.yaml file is produced during application build phase and can be retrieved from Github's project release page.