From 55de1c8dec92d51e60f875fbfaf9cb9b2d35e2f7 Mon Sep 17 00:00:00 2001 From: Steven Landow Date: Thu, 12 Nov 2020 13:58:03 -0800 Subject: [PATCH] use istioctl x workload in vm installation doc (#8418) * use istioctl x workload command in vm installation doc * final fixups * move cert to etc/certs * remove separate auto-register doc * lint * fix lint * add -y * use tabs * backticks * lint * split expose item * default wle cmd * fix category names * centos install * the * command doesn't generate sidecar.env * env var list --- DOC_OWNERS.md | 5 +- .../autoregistration/index.md | 164 ---------------- .../virtual-machines/single-network/index.md | 4 + .../setup/install/virtual-machine/index.md | 176 +++++++++++------- 4 files changed, 115 insertions(+), 234 deletions(-) delete mode 100644 content/en/docs/examples/virtual-machines/autoregistration/index.md diff --git a/DOC_OWNERS.md b/DOC_OWNERS.md index f72483c861..d91db8d8ed 100644 --- a/DOC_OWNERS.md +++ b/DOC_OWNERS.md @@ -1,7 +1,7 @@ # Istio.io Document Owners -There are 157 owned istio.io docs. +There are 156 owned istio.io docs. ## istio/wg-docs-maintainers: 15 docs @@ -21,9 +21,8 @@ There are 157 owned istio.io docs. - [docs/examples/microservices-istio/single/index.md](https://preliminary.istio.io/latest/docs/examples/microservices-istio/single) - [docs/reference/glossary/index.md](https://preliminary.istio.io/latest/docs/reference/glossary) -## istio/wg-environments-maintainers: 47 docs +## istio/wg-environments-maintainers: 46 docs -- [docs/examples/virtual-machines/autoregistration/index.md](https://preliminary.istio.io/latest/docs/examples/virtual-machines/autoregistration) - [docs/examples/virtual-machines/bookinfo/index.md](https://preliminary.istio.io/latest/docs/examples/virtual-machines/bookinfo) - [docs/examples/virtual-machines/multi-network/index.md](https://preliminary.istio.io/latest/docs/examples/virtual-machines/multi-network) - [docs/examples/virtual-machines/single-network/index.md](https://preliminary.istio.io/latest/docs/examples/virtual-machines/single-network) diff --git a/content/en/docs/examples/virtual-machines/autoregistration/index.md b/content/en/docs/examples/virtual-machines/autoregistration/index.md deleted file mode 100644 index d0893d6f94..0000000000 --- a/content/en/docs/examples/virtual-machines/autoregistration/index.md +++ /dev/null @@ -1,164 +0,0 @@ ---- -title: Automated Workload Entry Creation [experimental] -description: Learn how to use the experimental automated VM registration feature. - Istio mesh. -weight: 70 -keywords: -- kubernetes -- vms -- virtual-machines -owner: istio/wg-environments-maintainers -test: no ---- - -{{< warning >}} -This feature is actively in [development](https://github.com/istio/community/blob/master/FEATURE-LIFECYCLE.md) and is -considered `pre-alpha`. -{{< /warning >}} - -Istio 1.8 introduces a new configuration resource, [Workload Group](/docs/reference/config/networking/workload-group/), that can be used to automate -the creation of [Workload Entries](/docs/reference/config/networking/workload-entry/). -This example shows how to use a `WorkloadGroup` to integrate a virtual machine, or a bare metal host into a -single network Istio mesh deployed on Kubernetes without manual `WorkloadEntry` creation. This approach requires L3 connectivity -between the virtual machine, and the Kubernetes cluster. - -## Prerequisites - -- One or more Kubernetes clusters with versions: {{< supported_kubernetes_versions >}}. - -- Virtual machines must have L3 IP connectivity to the endpoints in the mesh. - This typically requires a VPC or a VPN, as well as a container network that - provides direct (without NAT or firewall deny) routing to the endpoints. The - machine is not required to have access to the cluster IP addresses assigned by - Kubernetes. - -- Installation must be completed using [virtual machine installation](/docs/setup/install/virtual-machine) instructions. - -## Prepare the guide environment - -Set the environment variables `VM_NAMESPACE` and `SERVICE_ACCOUNT` (use the same values that you used during installation): - -{{< text bash >}} -$ VM_NAMESPACE="" -$ SERVICE_ACCOUNT="" -{{< /text >}} - -### Running services on the virtual machine - -1. Setup an HTTP server on the virtual machine to serve HTTP traffic on port 8080: - - {{< text bash >}} - $ python -m SimpleHTTPServer 8080 - {{< /text >}} - - {{< warning >}} - You may have to open firewalls to be able to access the 8080 port on your virtual machine - {{< /warning >}} - -1. Add an associated Service to the mesh: - - {{< text bash >}} - $ cat <}} - -## Configure VM for Auto-Registration - -1. Create the auto-registration group. - - `WorkloadGroup` provides a template to automatically create a `WorkloadEntry` for each connected VM instance. - - {{< text bash >}} - $ cat <}} - -1. The proxy must be provided with the name and namespace to find the `WorkloadGroup` on connection. - - While logged on to the Virtual Machine: - - {{< text bash >}} - $ sudo echo "ISTIO_NAMESPACE=${VM_NAMESPACE}" >> /var/lib/istio/envoy/sidecar.env - $ sudo echo "ISTIO_META_AUTO_REGISTER_GROUP=auto-cloud-vm" >> /var/lib/istio/envoy/sidecar.env - {{< /text >}} - -1. Reconnect with new configuration. - - {{< text bash >}} - $ sudo systemctl restart istio - {{< /text >}} - -## Verify - -1. If successful, a new `WorkloadEntry` should exist in your `${VM_NAMESPACE}`: - - {{< text bash >}} - $ kubectl -n "${VM_NAMESPACE}" get workloadentry - NAME AGE ADDRESS - auto-cloud-vm-10.128.15.202 11s 10.128.15.202 - {{< /text >}} - -1. Deploy a pod running the `sleep` service in the Kubernetes cluster, and wait until it is ready: - - {{< text bash >}} - $ kubectl apply -f @samples/sleep/sleep.yaml@ - $ kubectl get pod - NAME READY STATUS RESTARTS AGE - sleep-88ddbcfdd-rm42k 2/2 Running 0 1s - ... - {{< /text >}} - -1. Send a request from the `sleep` service on the pod to the virtual machine: - - {{< text bash >}} - $ kubectl exec -it sleep-88ddbcfdd-rm42k -c sleep -- curl auto-cloud-vm.${VM_NAMESPACE}.svc.cluster.local:8080 - {{< /text >}} - - You will see output similar to this: - - {{< text html >}} - - Directory listing for / - -

Directory listing for /

-
-