Added runbook and updated makefile
This commit is contained in:
parent
7a251df629
commit
308014711f
7 changed files with 287 additions and 106 deletions
32
Makefile
32
Makefile
|
@ -13,6 +13,16 @@ ZONE=australia-southeast1-a
|
||||||
ISTIO_VERSION=1.5.0
|
ISTIO_VERSION=1.5.0
|
||||||
|
|
||||||
a: help
|
a: help
|
||||||
|
all: all.cluster all.istio default.app
|
||||||
|
|
||||||
|
all.cluster: cluster.create get.creds
|
||||||
|
|
||||||
|
all.istio: ns.create.istio-system istio.init crd.wait ns.istio.enabled istio.template istio.deploy
|
||||||
|
|
||||||
|
default.app: crd.wait skaffold.run.gcp.istio hipster.istio.rules
|
||||||
|
|
||||||
|
crd.wait:
|
||||||
|
@kubectl -n istio-system wait --for=condition=complete job --all
|
||||||
|
|
||||||
## Use Istio Version 1.5.0
|
## Use Istio Version 1.5.0
|
||||||
istio150:
|
istio150:
|
||||||
|
@ -25,7 +35,7 @@ istio135:
|
||||||
## Create GKE Cluster with istio enabled
|
## Create GKE Cluster with istio enabled
|
||||||
cluster.create.istio:
|
cluster.create.istio:
|
||||||
@gcloud container clusters create ${CLUSTER_NAME} --enable-autoupgrade \
|
@gcloud container clusters create ${CLUSTER_NAME} --enable-autoupgrade \
|
||||||
--enable-autoscaling --min-nodes=1 --max-nodes=10 --num-nodes=4 --zone=${ZONE} \
|
--enable-autoscaling --min-nodes=1 --max-nodes=10 --num-nodes=6 --zone=${ZONE} \
|
||||||
--addons=Istio --istio-config=auth=MTLS_PERMISSIVE \
|
--addons=Istio --istio-config=auth=MTLS_PERMISSIVE \
|
||||||
--machine-type=n1-standard-2
|
--machine-type=n1-standard-2
|
||||||
|
|
||||||
|
@ -43,7 +53,7 @@ cluster.resize:
|
||||||
## Create GKE Cluster
|
## Create GKE Cluster
|
||||||
cluster.create:
|
cluster.create:
|
||||||
@gcloud container clusters create ${CLUSTER_NAME} --enable-autoupgrade \
|
@gcloud container clusters create ${CLUSTER_NAME} --enable-autoupgrade \
|
||||||
--enable-autoscaling --min-nodes=1 --max-nodes=10 --num-nodes=4 --zone=${ZONE} \
|
--enable-autoscaling --min-nodes=1 --max-nodes=10 --num-nodes=6 --zone=${ZONE} \
|
||||||
--machine-type=n1-standard-2
|
--machine-type=n1-standard-2
|
||||||
|
|
||||||
## Get Cluster Creds
|
## Get Cluster Creds
|
||||||
|
@ -67,9 +77,6 @@ ns.istio.disabled:
|
||||||
istio.init:
|
istio.init:
|
||||||
@helm template istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f -
|
@helm template istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f -
|
||||||
|
|
||||||
istio.init.delete:
|
|
||||||
@helm template istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl delete -f -
|
|
||||||
|
|
||||||
|
|
||||||
## Generate Istio Template
|
## Generate Istio Template
|
||||||
istio.template:
|
istio.template:
|
||||||
|
@ -77,9 +84,13 @@ istio.template:
|
||||||
--values istio-${ISTIO_VERSION}/install/kubernetes/helm/istio/values-istio-demo.yaml > istio-manifests/istio-demo.yaml
|
--values istio-${ISTIO_VERSION}/install/kubernetes/helm/istio/values-istio-demo.yaml > istio-manifests/istio-demo.yaml
|
||||||
|
|
||||||
## Deploy Istio Config
|
## Deploy Istio Config
|
||||||
istio.deploy: istio.template
|
istio.deploy:
|
||||||
@kubectl apply -f istio-manifests/istio-demo.yaml
|
@kubectl apply -f istio-manifests/istio-demo.yaml
|
||||||
|
|
||||||
|
## Check if prometheus-stackdriver-sidecar has been deployed
|
||||||
|
prom.sidecar.exist:
|
||||||
|
@kubectl -n istio-system get deployment prometheus -o=go-template='{{$output := "stackdriver-prometheus-sidecar does not exists."}}{{range .spec.template.spec.containers}}{{if eq .name "sidecar"}}{{$output = (print "stackdriver-prometheus-sidecar exists. Image: " .image)}}{{end}}{{end}}{{printf $output}}{{"\n"}}'
|
||||||
|
|
||||||
## Delete Istio Config
|
## Delete Istio Config
|
||||||
istio.delete:
|
istio.delete:
|
||||||
@kubectl delete -f istio-manifests/istio-demo.yaml
|
@kubectl delete -f istio-manifests/istio-demo.yaml
|
||||||
|
@ -122,6 +133,15 @@ skaffold.build.gcp:
|
||||||
cluster.delete:
|
cluster.delete:
|
||||||
@gcloud container clusters delete ${CLUSTER_NAME} --zone ${ZONE}
|
@gcloud container clusters delete ${CLUSTER_NAME} --zone ${ZONE}
|
||||||
|
|
||||||
|
## Application Istio Rules
|
||||||
|
hipster.istio.rules:
|
||||||
|
@kubectl apply -f istio-manifests/frontend.yaml
|
||||||
|
@kubectl apply -f istio-manifests/frontend-gateway.yaml
|
||||||
|
@kubectl apply -f istio-manifests/whitelist-egress-googleapis.yaml
|
||||||
|
|
||||||
|
istio.init.delete:
|
||||||
|
@helm template istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl delete -f -
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo 'Usage:'
|
@echo 'Usage:'
|
||||||
|
|
14
README.md
14
README.md
|
@ -115,7 +115,7 @@ We offer the following installation methods:
|
||||||
```shell
|
```shell
|
||||||
minikube start --cpus=4 --memory 4096
|
minikube start --cpus=4 --memory 4096
|
||||||
```
|
```
|
||||||
|
|
||||||
- Launch “Docker for Desktop” (tested with Mac/Windows). Go to Preferences:
|
- Launch “Docker for Desktop” (tested with Mac/Windows). Go to Preferences:
|
||||||
- choose “Enable Kubernetes”,
|
- choose “Enable Kubernetes”,
|
||||||
- set CPUs to at least 3, and Memory to at least 6.0 GiB
|
- set CPUs to at least 3, and Memory to at least 6.0 GiB
|
||||||
|
@ -289,3 +289,15 @@ resources.
|
||||||
---
|
---
|
||||||
|
|
||||||
This is not an official Google project.
|
This is not an official Google project.
|
||||||
|
|
||||||
|
============
|
||||||
|
### Tony's notes
|
||||||
|
|
||||||
|
## ref links
|
||||||
|
|
||||||
|
[Cloud Monitoring metric export](https://cloud.google.com/solutions/stackdriver-monitoring-metric-export)
|
||||||
|
|
||||||
|
|
||||||
|
[External metrics list](https://cloud.google.com/monitoring/api/metrics_other)
|
||||||
|
|
||||||
|
[Metirc descriptors list](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors/list)
|
|
@ -21,7 +21,7 @@ sidecarInjectorWebhook:
|
||||||
|
|
||||||
pilot:
|
pilot:
|
||||||
autoscaleEnabled: false
|
autoscaleEnabled: false
|
||||||
traceSampling: 100.0
|
traceSampling: 10.0
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
@ -43,11 +43,11 @@ mixer:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
adapters:
|
adapters:
|
||||||
stdio:
|
stdio:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
grafana:
|
grafana:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
|
117
istio-manifests/istio-demo-prom-sidecar.yaml
Normal file
117
istio-manifests/istio-demo-prom-sidecar.yaml
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
|
||||||
|
---
|
||||||
|
# Source: istio/charts/prometheus/templates/deployment.yaml
|
||||||
|
# TODO: the original template has service account, roles, etc
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: prometheus
|
||||||
|
namespace: istio-system
|
||||||
|
labels:
|
||||||
|
app: prometheus
|
||||||
|
chart: prometheus
|
||||||
|
heritage: Tiller
|
||||||
|
release: istio
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: prometheus
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prometheus
|
||||||
|
chart: prometheus
|
||||||
|
heritage: Tiller
|
||||||
|
release: istio
|
||||||
|
annotations:
|
||||||
|
sidecar.istio.io/inject: "false"
|
||||||
|
spec:
|
||||||
|
serviceAccountName: prometheus
|
||||||
|
containers:
|
||||||
|
- name: sidecar
|
||||||
|
image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar:0.7.3
|
||||||
|
args:
|
||||||
|
- "--stackdriver.project-id=tonyh-gke-o11y-anz-openbanking"
|
||||||
|
- "--prometheus.wal-directory=/data/wal"
|
||||||
|
- "--prometheus.api-address=http://127.0.0.1:9090"
|
||||||
|
- "--stackdriver.kubernetes.location=australia-southeast1"
|
||||||
|
- "--stackdriver.kubernetes.cluster-name=o11y-ob"
|
||||||
|
ports:
|
||||||
|
- name: sidecar
|
||||||
|
containerPort: 9091
|
||||||
|
volumeMounts:
|
||||||
|
- name: data-volume
|
||||||
|
mountPath: /data
|
||||||
|
- name: prometheus
|
||||||
|
image: "docker.io/prom/prometheus:v2.12.0"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
args:
|
||||||
|
- '--storage.tsdb.retention=6h'
|
||||||
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
|
- '--storage.tsdb.path=/data'
|
||||||
|
ports:
|
||||||
|
- containerPort: 9090
|
||||||
|
name: http
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /-/healthy
|
||||||
|
port: 9090
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /-/ready
|
||||||
|
port: 9090
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
|
||||||
|
volumeMounts:
|
||||||
|
- name: data-volume
|
||||||
|
mountPath: /data
|
||||||
|
- name: config-volume
|
||||||
|
mountPath: /etc/prometheus
|
||||||
|
- mountPath: /etc/istio-certs
|
||||||
|
name: istio-certs
|
||||||
|
volumes:
|
||||||
|
- name: data-volume
|
||||||
|
emptyDir: {}
|
||||||
|
- name: config-volume
|
||||||
|
configMap:
|
||||||
|
name: prometheus
|
||||||
|
- name: istio-certs
|
||||||
|
secret:
|
||||||
|
defaultMode: 420
|
||||||
|
secretName: istio.default
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- "amd64"
|
||||||
|
- "ppc64le"
|
||||||
|
- "s390x"
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 2
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- "amd64"
|
||||||
|
- weight: 2
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- "ppc64le"
|
||||||
|
- weight: 2
|
||||||
|
preference:
|
||||||
|
matchExpressions:
|
||||||
|
- key: beta.kubernetes.io/arch
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- "s390x"
|
|
@ -214,7 +214,7 @@ metadata:
|
||||||
release: istio
|
release: istio
|
||||||
istio: galley
|
istio: galley
|
||||||
data:
|
data:
|
||||||
validatingwebhookconfiguration.yaml: |-
|
validatingwebhookconfiguration.yaml: |-
|
||||||
apiVersion: admissionregistration.k8s.io/v1beta1
|
apiVersion: admissionregistration.k8s.io/v1beta1
|
||||||
kind: ValidatingWebhookConfiguration
|
kind: ValidatingWebhookConfiguration
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -334,7 +334,7 @@ metadata:
|
||||||
release: istio
|
release: istio
|
||||||
istio: grafana
|
istio: grafana
|
||||||
data:
|
data:
|
||||||
custom-resources.yaml: |-
|
custom-resources.yaml: |-
|
||||||
apiVersion: authentication.istio.io/v1alpha1
|
apiVersion: authentication.istio.io/v1alpha1
|
||||||
kind: Policy
|
kind: Policy
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -350,18 +350,18 @@ data:
|
||||||
- name: grafana
|
- name: grafana
|
||||||
ports:
|
ports:
|
||||||
- number: 3000
|
- number: 3000
|
||||||
run.sh: |-
|
run.sh: |-
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [ "$#" -ne "1" ]; then
|
if [ "$#" -ne "1" ]; then
|
||||||
echo "first argument should be path to custom resource yaml"
|
echo "first argument should be path to custom resource yaml"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pathToResourceYAML=${1}
|
pathToResourceYAML=${1}
|
||||||
|
|
||||||
kubectl get validatingwebhookconfiguration istio-galley 2>/dev/null
|
kubectl get validatingwebhookconfiguration istio-galley 2>/dev/null
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
echo "istio-galley validatingwebhookconfiguration found - waiting for istio-galley deployment to be ready"
|
echo "istio-galley validatingwebhookconfiguration found - waiting for istio-galley deployment to be ready"
|
||||||
|
@ -381,7 +381,7 @@ data:
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 5
|
||||||
kubectl apply -f ${pathToResourceYAML}
|
kubectl apply -f ${pathToResourceYAML}
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/grafana/templates/configmap-dashboards.yaml
|
# Source: istio/charts/grafana/templates/configmap-dashboards.yaml
|
||||||
|
@ -14696,7 +14696,7 @@ data:
|
||||||
orgId: 1
|
orgId: 1
|
||||||
type: prometheus
|
type: prometheus
|
||||||
url: http://prometheus:9090
|
url: http://prometheus:9090
|
||||||
|
|
||||||
dashboardproviders.yaml: |
|
dashboardproviders.yaml: |
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
providers:
|
providers:
|
||||||
|
@ -14707,7 +14707,7 @@ data:
|
||||||
path: /var/lib/grafana/dashboards/istio
|
path: /var/lib/grafana/dashboards/istio
|
||||||
orgId: 1
|
orgId: 1
|
||||||
type: file
|
type: file
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/kiali/templates/configmap.yaml
|
# Source: istio/charts/kiali/templates/configmap.yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -14732,10 +14732,10 @@ data:
|
||||||
web_root: /kiali
|
web_root: /kiali
|
||||||
external_services:
|
external_services:
|
||||||
tracing:
|
tracing:
|
||||||
url:
|
url:
|
||||||
in_cluster_url: http://tracing/jaeger
|
in_cluster_url: http://tracing/jaeger
|
||||||
grafana:
|
grafana:
|
||||||
url:
|
url:
|
||||||
in_cluster_url: http://grafana:3000
|
in_cluster_url: http://grafana:3000
|
||||||
prometheus:
|
prometheus:
|
||||||
url: http://prometheus:9090
|
url: http://prometheus:9090
|
||||||
|
@ -15051,7 +15051,7 @@ metadata:
|
||||||
release: istio
|
release: istio
|
||||||
istio: citadel
|
istio: citadel
|
||||||
data:
|
data:
|
||||||
custom-resources.yaml: |-
|
custom-resources.yaml: |-
|
||||||
# Authentication policy to enable permissive mode for all services (that have sidecar) in the mesh.
|
# Authentication policy to enable permissive mode for all services (that have sidecar) in the mesh.
|
||||||
apiVersion: "authentication.istio.io/v1alpha1"
|
apiVersion: "authentication.istio.io/v1alpha1"
|
||||||
kind: "MeshPolicy"
|
kind: "MeshPolicy"
|
||||||
|
@ -15066,18 +15066,18 @@ data:
|
||||||
peers:
|
peers:
|
||||||
- mtls:
|
- mtls:
|
||||||
mode: PERMISSIVE
|
mode: PERMISSIVE
|
||||||
run.sh: |-
|
run.sh: |-
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
if [ "$#" -ne "1" ]; then
|
if [ "$#" -ne "1" ]; then
|
||||||
echo "first argument should be path to custom resource yaml"
|
echo "first argument should be path to custom resource yaml"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pathToResourceYAML=${1}
|
pathToResourceYAML=${1}
|
||||||
|
|
||||||
kubectl get validatingwebhookconfiguration istio-galley 2>/dev/null
|
kubectl get validatingwebhookconfiguration istio-galley 2>/dev/null
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
echo "istio-galley validatingwebhookconfiguration found - waiting for istio-galley deployment to be ready"
|
echo "istio-galley validatingwebhookconfiguration found - waiting for istio-galley deployment to be ready"
|
||||||
|
@ -15097,7 +15097,7 @@ data:
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 5
|
||||||
kubectl apply -f ${pathToResourceYAML}
|
kubectl apply -f ${pathToResourceYAML}
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/templates/configmap.yaml
|
# Source: istio/templates/configmap.yaml
|
||||||
|
@ -15138,7 +15138,7 @@ data:
|
||||||
accessLogFormat: ""
|
accessLogFormat: ""
|
||||||
|
|
||||||
# Set accessLogEncoding to JSON or TEXT to configure sidecar access log
|
# Set accessLogEncoding to JSON or TEXT to configure sidecar access log
|
||||||
accessLogEncoding: 'JSON'
|
accessLogEncoding: 'TEXT'
|
||||||
|
|
||||||
enableEnvoyAccessLogService: false
|
enableEnvoyAccessLogService: false
|
||||||
mixerCheckServer: istio-policy.istio-system.svc.cluster.local:9091
|
mixerCheckServer: istio-policy.istio-system.svc.cluster.local:9091
|
||||||
|
@ -15858,7 +15858,7 @@ spec:
|
||||||
configMap:
|
configMap:
|
||||||
name: istio-grafana-custom-resources
|
name: istio-grafana-custom-resources
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -15890,7 +15890,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/kiali/templates/serviceaccount.yaml
|
# Source: istio/charts/kiali/templates/serviceaccount.yaml
|
||||||
|
@ -16039,7 +16039,7 @@ spec:
|
||||||
configMap:
|
configMap:
|
||||||
name: istio-security-custom-resources
|
name: istio-security-custom-resources
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -16071,7 +16071,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/security/templates/serviceaccount.yaml
|
# Source: istio/charts/security/templates/serviceaccount.yaml
|
||||||
|
@ -16803,7 +16803,7 @@ spec:
|
||||||
name: http
|
name: http
|
||||||
selector:
|
selector:
|
||||||
app: grafana
|
app: grafana
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/kiali/templates/service.yaml
|
# Source: istio/charts/kiali/templates/service.yaml
|
||||||
|
@ -17065,7 +17065,7 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: certs
|
- name: certs
|
||||||
secret:
|
secret:
|
||||||
|
@ -17077,7 +17077,7 @@ spec:
|
||||||
- name: mesh-config
|
- name: mesh-config
|
||||||
configMap:
|
configMap:
|
||||||
name: istio
|
name: istio
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17109,7 +17109,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
---
|
---
|
||||||
# Source: istio/charts/gateways/templates/deployment.yaml
|
# Source: istio/charts/gateways/templates/deployment.yaml
|
||||||
|
|
||||||
|
@ -17124,7 +17124,7 @@ metadata:
|
||||||
heritage: Tiller
|
heritage: Tiller
|
||||||
istio: egressgateway
|
istio: egressgateway
|
||||||
release: istio
|
release: istio
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -17143,7 +17143,7 @@ spec:
|
||||||
heritage: Tiller
|
heritage: Tiller
|
||||||
istio: egressgateway
|
istio: egressgateway
|
||||||
release: istio
|
release: istio
|
||||||
|
|
||||||
annotations:
|
annotations:
|
||||||
sidecar.istio.io/inject: "false"
|
sidecar.istio.io/inject: "false"
|
||||||
spec:
|
spec:
|
||||||
|
@ -17200,7 +17200,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 40Mi
|
memory: 40Mi
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: NODE_NAME
|
- name: NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -17255,7 +17255,7 @@ spec:
|
||||||
value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-egressgateway
|
value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-egressgateway
|
||||||
- name: ISTIO_META_ROUTER_MODE
|
- name: ISTIO_META_ROUTER_MODE
|
||||||
value: standard
|
value: standard
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -17279,7 +17279,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: "istio-egressgateway-ca-certs"
|
secretName: "istio-egressgateway-ca-certs"
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17311,7 +17311,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -17324,7 +17324,7 @@ metadata:
|
||||||
heritage: Tiller
|
heritage: Tiller
|
||||||
istio: ingressgateway
|
istio: ingressgateway
|
||||||
release: istio
|
release: istio
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
@ -17343,7 +17343,7 @@ spec:
|
||||||
heritage: Tiller
|
heritage: Tiller
|
||||||
istio: ingressgateway
|
istio: ingressgateway
|
||||||
release: istio
|
release: istio
|
||||||
|
|
||||||
annotations:
|
annotations:
|
||||||
sidecar.istio.io/inject: "false"
|
sidecar.istio.io/inject: "false"
|
||||||
spec:
|
spec:
|
||||||
|
@ -17406,7 +17406,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 40Mi
|
memory: 40Mi
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: NODE_NAME
|
- name: NODE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -17461,8 +17461,8 @@ spec:
|
||||||
value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-ingressgateway
|
value: kubernetes://apis/apps/v1/namespaces/istio-system/deployments/istio-ingressgateway
|
||||||
- name: ISTIO_META_ROUTER_MODE
|
- name: ISTIO_META_ROUTER_MODE
|
||||||
value: standard
|
value: standard
|
||||||
|
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -17486,7 +17486,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: "istio-ingressgateway-ca-certs"
|
secretName: "istio-ingressgateway-ca-certs"
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17518,7 +17518,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
---
|
---
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -17576,7 +17576,7 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data/grafana
|
mountPath: /data/grafana
|
||||||
|
@ -17618,7 +17618,7 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
|
||||||
subPath: dashboardproviders.yaml
|
subPath: dashboardproviders.yaml
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17650,7 +17650,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -17729,14 +17729,14 @@ spec:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /kiali/healthz
|
path: /kiali/healthz
|
||||||
port: 20001
|
port: 20001
|
||||||
scheme: 'HTTP'
|
scheme: 'HTTP'
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /kiali/healthz
|
path: /kiali/healthz
|
||||||
port: 20001
|
port: 20001
|
||||||
scheme: 'HTTP'
|
scheme: 'HTTP'
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
env:
|
env:
|
||||||
|
@ -17754,7 +17754,7 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: kiali-configuration
|
- name: kiali-configuration
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -17767,7 +17767,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: kiali
|
secretName: kiali
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17799,7 +17799,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/mixer/templates/deployment.yaml
|
# Source: istio/charts/mixer/templates/deployment.yaml
|
||||||
|
@ -17849,7 +17849,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: policy-adapter-secret
|
secretName: policy-adapter-secret
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -17881,7 +17881,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
containers:
|
containers:
|
||||||
- name: mixer
|
- name: mixer
|
||||||
image: "docker.io/istio/mixer:1.5.0"
|
image: "docker.io/istio/mixer:1.5.0"
|
||||||
|
@ -17911,7 +17911,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -17969,7 +17969,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 40Mi
|
memory: 40Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -18026,7 +18026,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: telemetry-adapter-secret
|
secretName: telemetry-adapter-secret
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18058,7 +18058,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
containers:
|
containers:
|
||||||
- name: mixer
|
- name: mixer
|
||||||
image: "docker.io/istio/mixer:1.5.0"
|
image: "docker.io/istio/mixer:1.5.0"
|
||||||
|
@ -18095,7 +18095,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -18156,7 +18156,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 40Mi
|
memory: 40Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -18164,7 +18164,7 @@ spec:
|
||||||
- name: uds-socket
|
- name: uds-socket
|
||||||
mountPath: /sock
|
mountPath: /sock
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/pilot/templates/deployment.yaml
|
# Source: istio/charts/pilot/templates/deployment.yaml
|
||||||
|
@ -18239,7 +18239,7 @@ spec:
|
||||||
- name: PILOT_PUSH_THROTTLE
|
- name: PILOT_PUSH_THROTTLE
|
||||||
value: "100"
|
value: "100"
|
||||||
- name: PILOT_TRACE_SAMPLING
|
- name: PILOT_TRACE_SAMPLING
|
||||||
value: "10"
|
value: "100"
|
||||||
- name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_OUTBOUND
|
- name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_OUTBOUND
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_INBOUND
|
- name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_INBOUND
|
||||||
|
@ -18248,7 +18248,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/istio/config
|
mountPath: /etc/istio/config
|
||||||
|
@ -18299,7 +18299,7 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 40Mi
|
memory: 40Mi
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: istio-certs
|
- name: istio-certs
|
||||||
mountPath: /etc/certs
|
mountPath: /etc/certs
|
||||||
|
@ -18312,7 +18312,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
secretName: istio.istio-pilot-service-account
|
secretName: istio.istio-pilot-service-account
|
||||||
optional: true
|
optional: true
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18344,7 +18344,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/prometheus/templates/deployment.yaml
|
# Source: istio/charts/prometheus/templates/deployment.yaml
|
||||||
|
@ -18376,27 +18376,12 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: prometheus
|
serviceAccountName: prometheus
|
||||||
containers:
|
containers:
|
||||||
- name: sidecar
|
|
||||||
image: gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar:0.7.3
|
|
||||||
args:
|
|
||||||
- "--stackdriver.project-id=tonyh-gke-o11y-anz-openbanking"
|
|
||||||
- "--prometheus.wal-directory=/data/wal"
|
|
||||||
- "--prometheus.api-address=http://127.0.0.1:9090"
|
|
||||||
- "--stackdriver.kubernetes.location=australia-southeast1"
|
|
||||||
- "--stackdriver.kubernetes.cluster-name=o11y-ob"
|
|
||||||
ports:
|
|
||||||
- name: sidecar
|
|
||||||
containerPort: 9091
|
|
||||||
volumeMounts:
|
|
||||||
- name: data-volume
|
|
||||||
mountPath: /data
|
|
||||||
- name: prometheus
|
- name: prometheus
|
||||||
image: "docker.io/prom/prometheus:v2.12.0"
|
image: "docker.io/prom/prometheus:v2.12.0"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
args:
|
args:
|
||||||
- '--storage.tsdb.retention=6h'
|
- '--storage.tsdb.retention=6h'
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
- '--storage.tsdb.path=/data'
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
name: http
|
name: http
|
||||||
|
@ -18411,17 +18396,13 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data-volume
|
|
||||||
mountPath: /data
|
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/prometheus
|
mountPath: /etc/prometheus
|
||||||
- mountPath: /etc/istio-certs
|
- mountPath: /etc/istio-certs
|
||||||
name: istio-certs
|
name: istio-certs
|
||||||
volumes:
|
volumes:
|
||||||
- name: data-volume
|
|
||||||
emptyDir: {}
|
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
|
@ -18429,7 +18410,7 @@ spec:
|
||||||
secret:
|
secret:
|
||||||
defaultMode: 420
|
defaultMode: 420
|
||||||
secretName: istio.default
|
secretName: istio.default
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18461,7 +18442,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/security/templates/deployment.yaml
|
# Source: istio/charts/security/templates/deployment.yaml
|
||||||
|
@ -18516,8 +18497,8 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18549,7 +18530,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/sidecarInjectorWebhook/templates/deployment.yaml
|
# Source: istio/charts/sidecarInjectorWebhook/templates/deployment.yaml
|
||||||
|
@ -18629,7 +18610,7 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -18645,7 +18626,7 @@ spec:
|
||||||
path: config
|
path: config
|
||||||
- key: values
|
- key: values
|
||||||
path: values
|
path: values
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18677,7 +18658,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
|
|
||||||
---
|
---
|
||||||
# Source: istio/charts/tracing/templates/deployment-jaeger.yaml
|
# Source: istio/charts/tracing/templates/deployment-jaeger.yaml
|
||||||
|
@ -18745,7 +18726,7 @@ spec:
|
||||||
- name: MEMORY_MAX_TRACES
|
- name: MEMORY_MAX_TRACES
|
||||||
value: "50000"
|
value: "50000"
|
||||||
- name: QUERY_BASE_PATH
|
- name: QUERY_BASE_PATH
|
||||||
value: /jaeger
|
value: /jaeger
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
|
@ -18760,8 +18741,8 @@ spec:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -18793,7 +18774,7 @@ spec:
|
||||||
- key: beta.kubernetes.io/arch
|
- key: beta.kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "s390x"
|
- "s390x"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
|
49
runbook.md
Normal file
49
runbook.md
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
# Runbook get demo up and running
|
||||||
|
|
||||||
|
1. Update Variables in Makefile
|
||||||
|
|
||||||
|
## GKE Cluster
|
||||||
|
2. Create a cluster that isn't using Istio enabled.
|
||||||
|
|
||||||
|
`make cluster.create`
|
||||||
|
|
||||||
|
> Takes a few minutes
|
||||||
|
|
||||||
|
3. Get Cluster creds and set kubeconfig
|
||||||
|
|
||||||
|
`make get.creds`
|
||||||
|
|
||||||
|
4. Confirm connection to the cluster
|
||||||
|
|
||||||
|
`kubectl get nodes`
|
||||||
|
|
||||||
|
### Istio Setup
|
||||||
|
|
||||||
|
5. Create istio-system namespace
|
||||||
|
|
||||||
|
`make ns.create.istio-system`
|
||||||
|
|
||||||
|
6. Initliase Istio
|
||||||
|
|
||||||
|
`make istio.init`
|
||||||
|
|
||||||
|
7. Enable istio sidecar injection to default namesapce
|
||||||
|
|
||||||
|
`make ns.istio.enabled`
|
||||||
|
|
||||||
|
8. Create Istio template (if no istio-demo.yaml)
|
||||||
|
|
||||||
|
`make istio.template`
|
||||||
|
|
||||||
|
9. Deploy Istio
|
||||||
|
|
||||||
|
`make istio.deploy`
|
||||||
|
> Wait for containers for istio to be deployed.
|
||||||
|
|
||||||
|
`kubectl get pods -n istio-system`
|
||||||
|
|
||||||
|
## Application
|
||||||
|
|
||||||
|
10. Deploy Istio configured app with tracing turned on
|
||||||
|
|
||||||
|
`make skaffold.run.gcp.istio`
|
|
@ -85,4 +85,6 @@ profiles:
|
||||||
deploy:
|
deploy:
|
||||||
kubectl:
|
kubectl:
|
||||||
manifests:
|
manifests:
|
||||||
- ./kubernetes-manifests-tracing/**.yaml
|
- ./kubernetes-manifests-tracing/**.yaml
|
||||||
|
- ./istio-manifests/frontend**.yaml
|
||||||
|
- ./istio-manifests/whitelist-egress-googleapis.yaml
|
Loading…
Add table
Add a link
Reference in a new issue