Hi @mark, @Anatoliy_Vuets, @michaelhogersosis
I found solution for GCP, but it need edit basic instruction for 03-containerized-kubernetes
first of all we are need to authenticating in GSR in terminal you need connect to cluster with command
gcloud container clusters get-credentials shiny --zone us-central1-c --project your-project
then going to IAM create json key for GCR (google container registry) then in terminal type command:
create secret key for GCR
sudo kubectl create secret docker-registry gcr-json-key
–docker-server=gcr.io
–docker-username=_json_key
–docker-password="$(cat gcr.json)"
--docker-email=any-valid-email@host.com
will execute the command
patch default serviceaccount
sudo kubectl patch serviceaccount default
-p ‘{“imagePullSecrets”: [{“name”: “gcr-json-key”}]}’
after that for avoid pulling images to each node in cluster need to modify
apiVersion: apps/v1
kind: Deployment
metadata:
name: shinyproxy
spec:
selector:
matchLabels:
run: shinyproxy
replicas: 1
template:
metadata:
labels:
run: shinyproxy
spec:
** imagePullSecrets:**
** - name: gcr-json-key**
containers:
- name: shinyproxy
image: gcr.io/your-project/shinyproxy-example
imagePullPolicy: Always
ports:
- containerPort: 8080
- name: kube-proxy-sidecar
image: gcr.io/your-project/kube-proxy-sidecar
imagePullPolicy: Always
ports:
- containerPort: 8001
and it worked