Skip to content

Commit

Permalink
Merge pull request cloudnativedaysjp#390 from Himalayan-wildcat/featu…
Browse files Browse the repository at this point in the history
…re/update-istio-ambient

Istio ambientチャプター更新
  • Loading branch information
Himalayan-wildcat authored Oct 20, 2024
2 parents b5b06fa + c60ae02 commit 9176bc6
Show file tree
Hide file tree
Showing 39 changed files with 878 additions and 710 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- [chapter_istio](./chapter_istio/)
- [chapter_cilium](./chapter_cilium/)
- [chapter_argo-rollouts](./chapter_argo-rollouts/)
- [chapter_istio-ambientmesh](./chapter_istio-ambientmesh/)
- [chapter_istio-ambient-mode](./chapter_istio-ambient-mode/)
- [chapter_hubble](./chapter_hubble/)
- [chapter_loki](./chapter_loki/)
- [chapter_tempo](./chapter_tempo/)
Expand All @@ -41,7 +41,7 @@ flowchart TD
istio[chapter_istio]
cilium[chapter_cilium]
argorollouts[chapter_argo-rollouts]
istioambient[chapter_istio-ambientmesh]
istioambient[chapter_istio-ambient-mode]
hubble[chapter_hubble]
loki[chapter_loki]
tempo[chapter_tempo]
Expand Down
837 changes: 837 additions & 0 deletions chapter_istio-ambient-mode/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ apiVersion: v1
kind: Pod
metadata:
labels:
app: curl-allow
version: v1
content: layer4-authz
prometheus-monitor-ignore: ""
name: curl-allow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ apiVersion: v1
kind: Pod
metadata:
labels:
app: curl-deny
version: v1
content: layer4-authz
prometheus-monitor-ignore: ""
name: curl-deny
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ apiVersion: v1
kind: ServiceAccount
automountServiceAccountToken: false
metadata:
labels:
content: layer7-authz
name: curl
---
apiVersion: v1
kind: Pod
metadata:
labels:
app: curl
version: v1
content: layer7-authz
prometheus-monitor-ignore: ""
name: curl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ releases:
chart: istio-official/base
version: 1.23.2
- name: istiod
namespace: istio-system
chart: istio-official/istiod
version: 1.23.2
namespace: istio-system
createNamespace: true
wait: true
values:
- values/istiod.values.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ global:
imagePullPolicy: IfNotPresent
logAsJson: true
cni:
logLevel: info
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 200m
memory: 256Mi
privileged: true
ambient:
enabled: true
excludeNamespaces:
- kube-system
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@ pilot:
cpu: 100m
memory: 128Mi
env:
VERIFY_CERTIFICATE_AT_CLIENT: "true"
ENABLE_AUTO_SNI: "true"
PILOT_ENABLE_HBONE: "true"
CA_TRUSTED_NODE_ACCOUNTS: "istio-system/ztunnel,kube-system/ztunnel"
PILOT_ENABLE_AMBIENT_CONTROLLERS: "true"
# cf.) https://istio.io/latest/docs/reference/commands/pilot-discovery/#envvars
PILOT_ENABLE_AMBIENT: "true"
meshConfig:
defaultConfig:
proxyMetadata:
ISTIO_META_ENABLE_HBONE: "true"
defaultProviders:
metrics:
- prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ external_services:
tracing:
enabled: false
server:
port: 28080
metrics_enabled: false
node_port: 32766
observability:
metrics:
enabled: false
# 新しいsigning_keyが毎apply/syncで作成されてしまうことが原因で、
# kialiのhelm versionが毎回更新される(pod)が毎回再作成されることを
# 回避するために、ダミー用のsigning_keyを指定する。
login_token:
signing_key: "dummy key"
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ prometheusOperator:
memory: 256Mi
prometheus:
prometheusSpec:
logFormat: json
resources:
requests:
cpu: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ resources:
limits:
cpu: 100m
memory: 84Mi
env:
LOG_FORMAT: json
imagePullPolicy: IfNotPresent
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions chapter_istio-ambient-mode/kind/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: istio-ambient
nodes:
- role: control-plane
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
extraPortMappings:
- containerPort: 32766
hostPort: 28080
listenAddress: "0.0.0.0"
protocol: TCP
- role: worker
image: kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ metadata:
labels:
content: layer7-authz
spec:
selector:
matchLabels:
istio.io/gateway-name: handson
targetRefs:
- kind: Service
group: ""
name: handson
action: DENY
rules:
- from:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: gateway.networking.k8s.io/v1beta1
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
annotations:
istio.io/for-service-account: handson-blue
labels:
istio.io/waypoint-for: service
app.kubernetes.io/component: waypoint-proxy
name: handson
name: waypoint
spec:
gatewayClassName: istio-waypoint
listeners:
Expand Down
Loading

0 comments on commit 9176bc6

Please sign in to comment.