You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/setup/install/virtual-machine/containerized/index.md
+16-12Lines changed: 16 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,9 @@ keywords:
10
10
- docker
11
11
- containers
12
12
owner: istio/wg-environments-maintainers
13
-
test: yes
14
13
15
14
---
16
-
Follow this guide to run the Istio-proxy as a container instead of the Istio virtual machine integration runtime allowing more flexibility of the underlying platform.
15
+
Follow this guide to run the Istio-proxy as a container instead of the Istio virtual machine integration runtime, allowing you more control over the underlying platform.
17
16
18
17
## Prerequisites
19
18
@@ -24,22 +23,22 @@ Follow this guide to run the Istio-proxy as a container instead of the Istio vir
24
23
## Host OS requirements
25
24
26
25
1. Have a container runtime installed like [Docker](https://docs.docker.com/engine/install/) (used in this guide) or [Podman](https://podman.io/docs/installation).
27
-
1. Ability to run a container with `--network=host`- allowing it to interact with the hosts Iptables.
28
-
1. Ability to run a container with the capability: `NET_ADMIN` - allowing it to update Iptables.
26
+
1. Ability to run a container with `--network=host`- to configure Iptables of the host OS.
27
+
1. Ability to run a container with the capability: `NET_ADMIN` - giving the container privileges to configure iptables.
29
28
1. Reserve UID `1337` for the user: `istio-proxy`.
30
29
31
30
## Overview
32
31
33
32
Installing the Istio-proxy package comes with a start-[script]({{< github_blob >}}tools/packaging/common/istio-start.sh) to bootstrap some final variables
34
33
and runs [istio-iptables](/docs/reference/commands/pilot-agent/#pilot-agent-istio-iptables) and [istio-clean-iptables](/docs/reference/commands/pilot-agent/#pilot-agent-istio-clean-iptables)
35
-
to correctly configure `iptables` before starting the [istio-proxy](docs/reference/commands/pilot-agent/#pilot-agent-proxy) itself.
36
-
This guide will cover this extra configurations to run the Istio-proxy as a sidecar-container.
34
+
to correctly configure `iptables` before starting the [istio-proxy](docs/reference/commands/pilot-agent/#pilot-agent-proxy).
35
+
This guide will cover this extra configurations required to run the Istio-proxy as a sidecar-container.
37
36
38
37
## Extra configuration
39
38
40
39
Like mentioned above, extra configuration to `cluster.env` and `mesh.yaml` is required. This is an addition on the already generated configuration via [Virtual Machine Installation](/docs/setup/install/virtual-machine/#create-files-to-transfer-to-the-virtual-machine):
41
40
42
-
1. setup some extra environment variables:
41
+
1. setup extra environment variables:
43
42
44
43
{{< text bash >}}
45
44
$ INSTANCE_IP="<theprimaryIPoftheVM>"
@@ -99,17 +98,23 @@ Run the following commands on the virtual machine:
99
98
1. Install the [Mesh Config](/docs/reference/config/istio.mesh.v1alpha1/#MeshConfig) to `/etc/istio/config/mesh`:
The install spec of Istio virtual machine intergration runtime creates the /etc/istio > /var/lib/istio symlink, we keep it for consistency.
109
+
{{< /warning >}}
110
+
106
111
1. Add the istiod host to `/etc/hosts`:
107
112
108
113
{{< text bash >}}
109
114
$ sudo sh -c 'cat $(eval echo ~$SUDO_USER)/hosts >> /etc/hosts'
110
115
{{< /text >}}
111
116
112
-
1. Transfer ownership of the files in `/etc/certs/` and `/var/lib/istio/envoy/` to the Istio proxy:
117
+
1. Transfer ownership of the files in `/etc/certs/` and `/var/lib/istio/envoy/` to Istio proxy:
113
118
114
119
{{< text bash >}}
115
120
$ sudo mkdir -p /etc/istio/proxy
@@ -157,7 +162,7 @@ Run the following commands on the virtual machine:
157
162
{{< /text >}}
158
163
159
164
{{< warning >}}
160
-
The proxyv2 image is configured to use iptables-legacy, hence we need to do some trickery with `update-alternatives` to consult the correct iptables endpoint.
165
+
The proxyv2 image is configured to use iptables-legacy, hence we need to do some trickery with `update-alternatives` to consult the correct iptables endpoint(nf_tables > legeacy).
161
166
{{< /warning >}}
162
167
163
168
1. Start the Istio-proxy container:
@@ -219,6 +224,5 @@ Run the following commands on the virtual machine:
219
224
{{< /text >}}
220
225
221
226
{{< idea >}}
222
-
A more sophisticated way of running containerized Istio-proxy would be to reuse the startup script or setup systemd unit files to take care of start and stopping your Istio-proxy.
223
-
Making sure it always has a correct configured environment.
227
+
A more sophisticated way of running containerized Istio-proxy is to use a start/stop script or setup systemd unit file to realize the correct ordering and environment setup.
0 commit comments