catservice

command module
v0.0.0-...-57a57bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL