Add gcr.io/istio-next to image names

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-07 17:14:52 -07:00
parent 375e2d35dd
commit 03182151ee
13 changed files with 60 additions and 33 deletions

View file

@ -25,7 +25,7 @@ add them to the cart, and purchase them.
gcloud auth configure-docker -q
1. Edit `skaffold.yaml`, prepend your GCR registry host (`gcr.io/YOUR_PROJECT/`)
to all `imageName:` fields.
to all `imageName:` fields (or update the existing project name).
1. Edit the Deployment manifests at `kubernetes-manifests` directory and update
the `image` fields to match the changes you made in the previous step.
@ -39,3 +39,20 @@ add them to the cart, and purchase them.
then visit the application on your browser to confirm
installation.
### Istio Deployment
1. Create a GKE cluster.
2. Install Istio **without mutual TLS** enablement.
3. Install the automatic sidecar injection (annotate the `default` namespace
with the label):
kubectl label namespace default istio-injection=enabled
4. Deploy the application.
5. Apply the manifests in [`./istio-manifests`](./istio-manifests) directory.
kubectl apply -f ./istio-manifests

View file

@ -24,7 +24,7 @@ spec:
value: "6379"
containers:
- name: server
image: cartservice
image: gcr.io/istio-next/cartservice
ports:
- containerPort: 7070
env:

View file

@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: server
image: checkoutservice
image: gcr.io/istio-next/checkoutservice
ports:
- containerPort: 5050
readinessProbe:
@ -51,5 +51,6 @@ spec:
selector:
app: checkoutservice
ports:
- port: 5050
- name: grpc
port: 5050
targetPort: 5050

View file

@ -11,9 +11,10 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: currencyservice
image: gcr.io/istio-next/currencyservice
ports:
- containerPort: 7000
- name: grpc
containerPort: 7000
readinessProbe:
periodSeconds: 5
tcpSocket:
@ -39,5 +40,6 @@ spec:
selector:
app: currencyservice
ports:
- port: 7000
- name: grpc
port: 7000
targetPort: 7000

View file

@ -11,7 +11,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: emailservice
image: gcr.io/istio-next/emailservice
ports:
- containerPort: 8080
readinessProbe:
@ -39,5 +39,6 @@ spec:
selector:
app: emailservice
ports:
- port: 5000
- name: grpc
port: 5000
targetPort: 8080

View file

@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: server
image: frontend
image: gcr.io/istio-next/frontend
ports:
- containerPort: 8080
readinessProbe:
@ -59,7 +59,8 @@ spec:
selector:
app: frontend
ports:
- port: 80
- name: http
port: 80
targetPort: 8080
---
apiVersion: v1

View file

@ -24,7 +24,7 @@ spec:
value: "frontend:80"
containers:
- name: main
image: loadgenerator
image: gcr.io/istio-next/loadgenerator
env:
- name: FRONTEND_ADDR
value: "frontend:80"

View file

@ -11,7 +11,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: paymentservice
image: gcr.io/istio-next/paymentservice
ports:
- containerPort: 50051
readinessProbe:
@ -39,5 +39,6 @@ spec:
selector:
app: paymentservice
ports:
- port: 50051
- name: grpc
port: 50051
targetPort: 50051

View file

@ -11,7 +11,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: productcatalogservice
image: gcr.io/istio-next/productcatalogservice
ports:
- containerPort: 3550
readinessProbe:
@ -39,5 +39,6 @@ spec:
selector:
app: productcatalogservice
ports:
- port: 3550
- name: grpc
port: 3550
targetPort: 3550

View file

@ -11,7 +11,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: recommendationservice
image: gcr.io/istio-next/recommendationservice
ports:
- containerPort: 8080
readinessProbe:
@ -42,5 +42,6 @@ spec:
selector:
app: recommendationservice
ports:
- port: 8080
- name: grpc
port: 8080
targetPort: 8080

View file

@ -41,8 +41,9 @@ metadata:
name: redis-cart
spec:
type: ClusterIP
ports:
- port: 6379
targetPort: 6379
selector:
app: redis-cart
ports:
- name: redis
port: 6379
targetPort: 6379

View file

@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: server
image: shippingservice
image: gcr.io/istio-next/shippingservice
ports:
- containerPort: 50051
readinessProbe:
@ -38,5 +38,6 @@ spec:
selector:
app: shippingservice
ports:
- port: 50051
- name: grpc
port: 50051
targetPort: 50051

View file

@ -4,25 +4,25 @@ build:
tagPolicy:
gitCommit: {}
artifacts:
- imageName: emailservice
- imageName: gcr.io/istio-next/emailservice
workspace: src/emailservice
- imageName: productcatalogservice
- imageName: gcr.io/istio-next/productcatalogservice
workspace: src/productcatalogservice
- imageName: recommendationservice
- imageName: gcr.io/istio-next/recommendationservice
workspace: src/recommendationservice
- imageName: shippingservice
- imageName: gcr.io/istio-next/shippingservice
workspace: src/shippingservice
- imageName: checkoutservice
- imageName: gcr.io/istio-next/checkoutservice
workspace: src/checkoutservice
- imageName: paymentservice
- imageName: gcr.io/istio-next/paymentservice
workspace: src/paymentservice
- imageName: currencyservice
- imageName: gcr.io/istio-next/currencyservice
workspace: src/currencyservice
- imageName: cartservice
- imageName: gcr.io/istio-next/cartservice
workspace: src/cartservice
- imageName: frontend
- imageName: gcr.io/istio-next/frontend
workspace: src/frontend
- imageName: loadgenerator
- imageName: gcr.io/istio-next/loadgenerator
workspace: src/loadgenerator
deploy:
kubectl: