-
Couldn't load subscription status.
- Fork 1k
Feature: Add Istio Ambient Mode Support via Overlay Method #3246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
7d6b5da
cc7d872
4e15ab9
c81d883
eb5e10b
d8795df
0e7ea54
fbc3d8c
2541535
f009b25
29a7b11
984eae4
2583800
917ed43
c578b30
438f881
6902821
39f8b42
caf196a
f477654
6ea7550
daade68
f1e274b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| apiVersion: apps/v1 | ||
| kind: DaemonSet | ||
| metadata: | ||
| name: istio-cni-node | ||
| namespace: kube-system | ||
| spec: | ||
| template: | ||
| spec: | ||
| containers: | ||
| - name: install-cni | ||
| volumeMounts: | ||
| - mountPath: /var/run/ztunnel | ||
| name: cni-ztunnel-sock-dir | ||
| - mountPath: /host/var/run/netns | ||
| name: cni-netns-dir | ||
| mountPropagation: HostToContainer | ||
| volumes: | ||
| - name: cni-ztunnel-sock-dir | ||
| hostPath: | ||
| path: /var/run/ztunnel | ||
| type: DirectoryOrCreate |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: istio-cni-config | ||
| namespace: kube-system | ||
| data: | ||
| AMBIENT_ENABLED: "true" |
juliusvonkohout marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: istio-cni | ||
| rules: | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - pods | ||
| - pods/status | ||
| - nodes | ||
| - namespaces | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch | ||
| - patch | ||
| - update |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we deploy Ztunnel in another namespace called istio-ztunnel or so? So separate and isolated ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See also #3246 (comment) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| apiVersion: v1 | ||
| kind: Namespace | ||
| metadata: | ||
| name: istio-system | ||
| labels: | ||
| pod-security.kubernetes.io/enforce: privileged |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: istiod | ||
| namespace: istio-system | ||
| spec: | ||
| template: | ||
| spec: | ||
| containers: | ||
| - name: discovery | ||
| env: | ||
| - name: PILOT_ENABLE_AMBIENT | ||
| value: "true" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
| kind: Component | ||
|
|
||
| resources: | ||
| - ztunnel.yaml | ||
| - istio-namespace-pss-privileged.yaml | ||
|
|
||
| patches: | ||
| - path: istiod-ambient-patch.yaml | ||
| target: | ||
| kind: Deployment | ||
| name: istiod | ||
| namespace: istio-system | ||
| - path: cni-ambient-patch.yaml | ||
| target: | ||
| kind: DaemonSet | ||
| name: istio-cni-node | ||
| namespace: kube-system | ||
| - path: cni-config-patch.yaml | ||
| target: | ||
| kind: ConfigMap | ||
| name: istio-cni-config | ||
| namespace: kube-system | ||
| - path: cni-rbac-patch.yaml | ||
| target: | ||
| kind: ClusterRole | ||
| name: istio-cni | ||
| - target: | ||
| kind: Namespace | ||
| name: kubeflow | ||
| patch: |- | ||
| - op: add | ||
| path: /metadata/labels/istio.io~1dataplane-mode | ||
| value: ambient |
Uh oh!
There was an error while loading. Please reload this page.