Complete the code to add Envoy as a sidecar container in a Kubernetes Pod spec.
containers:
- name: app-container
image: myapp:latest
- name: envoy-proxy
image: [1]The Envoy sidecar container uses the official Envoy image envoyproxy/envoy:v1.22.0 to run the proxy alongside the app container.
Complete the Envoy container spec to expose the admin interface on port 9901.
containers:
- name: envoy-proxy
image: envoyproxy/envoy:v1.22.0
ports:
- containerPort: [1]Envoy's admin interface commonly listens on port 9901, which helps in monitoring and debugging.
Fix the error in the Envoy sidecar container args to specify the config file path.
containers:
- name: envoy-proxy
image: envoyproxy/envoy:v1.22.0
args: ["-c", [1]]The argument value must be a string with quotes inside the YAML list, so use double quotes inside the array.
Fill both blanks to define a Kubernetes Pod annotation and Envoy container env var for proxying.
metadata:
annotations:
sidecar.istio.io/inject: [1]
containers:
- name: envoy-proxy
env:
- name: PROXY_MODE
value: [2]The annotation disables sidecar injection with "false", and the Envoy proxy mode is set to "default".
Fill all three blanks to create an Envoy bootstrap config map with keys for node id, cluster, and admin port.
apiVersion: v1 kind: ConfigMap metadata: name: envoy-bootstrap data: node_id: [1] cluster: [2] admin_port: "[3]"
The node_id is a unique Envoy identifier, the cluster name is 'service-cluster', and the admin port is set to '9901'.