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 gcloud auth configure-docker -q
1. Edit `skaffold.yaml`, prepend your GCR registry host (`gcr.io/YOUR_PROJECT/`) 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 1. Edit the Deployment manifests at `kubernetes-manifests` directory and update
the `image` fields to match the changes you made in the previous step. 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 then visit the application on your browser to confirm
installation. 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" value: "6379"
containers: containers:
- name: server - name: server
image: cartservice image: gcr.io/istio-next/cartservice
ports: ports:
- containerPort: 7070 - containerPort: 7070
env: env:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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