Skip to content

bobcatfish/catservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

57a57bb · Oct 30, 2021
Oct 30, 2021
Oct 30, 2021
Sep 23, 2021
Sep 22, 2021
Sep 23, 2021
Sep 24, 2021
Jul 26, 2019
Jul 26, 2019
Aug 15, 2019
Aug 1, 2019
Sep 20, 2021
Sep 24, 2021
Oct 30, 2021

Repository files navigation

catservice

Yay cats!

Running it

go run main.go

Building the Docker image

docker build -f DOCKERFILE . -t catservice
docker run -p 80:80 catservice

Running it in kubernetes with Istio

Creating a GKE cluster with Istio & Prometheus

export PROJECT_ID=christiewilson-catfactory
export CLUSTER_NAME=ilovecats

gcloud beta container clusters create $CLUSTER_NAME \
 --enable-autoscaling \
 --min-nodes=1 \
 --max-nodes=3 \
 --scopes=cloud-platform \
 --enable-basic-auth \
 --no-issue-client-certificate \
 --project=$PROJECT_ID \
 --region=asia-northeast1 \
 --machine-type=n1-standard-4 \
 --image-type=cos \
 --num-nodes=1 \
 --cluster-version=latest \
 --addons=HorizontalPodAutoscaling,Istio \
 --istio-config=auth=MTLS_PERMISSIVE


kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole=cluster-admin \
--user=$(gcloud config get-value core/account)

Once it's setup

Finding the external IP of the ingress gateway:

kubectl -n istio-system get svc

Releases

No releases published

Packages

No packages published