Skip to content
Yay cats!
Go HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cat
config
static
tekton
.gitignore
Dockerfile
LICENSE
OWNERS
README.md
main.go

README.md

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
You can’t perform that action at this time.