-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
csm: modify o11y test to use proxyless bootstrap injector (#141)
As part of CSM Gateway for Mesh GA - we have already implemented a Proxyless Bootstrap Injector in GCP which will allow clusters that are onboarded to CSM Gateway for Mesh to get the following injected into the pod with the right labels: 1. initContainer with TD Bootstrap Injector + volume Mount where the config output is generated 2. CSM O11y related labels and envvars. The test cluster also had to be updated to follow the new onboarding steps. I will create a CL internally to update the cluster creation script Testing: [here](https://source.cloud.google.com/results/invocations/3e3a284a-857d-4a1a-9591-d78efff9008e)
- Loading branch information
Showing
11 changed files
with
802 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--flagfile=config/common.cfg | ||
--project=grpc-testing | ||
--project_number=830293263384 | ||
--network=default-vpc | ||
--gcp_service_account[email protected] | ||
--private_api_key_secret_name=projects/830293263384/secrets/xds-interop-tests-private-api-access-key | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ${deployment_name} | ||
namespace: ${namespace_name} | ||
labels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
owner: xds-k8s-interop-test | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
template: | ||
metadata: | ||
labels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
owner: xds-k8s-interop-test | ||
spec: | ||
% if service_account_name: | ||
serviceAccountName: ${service_account_name} | ||
% endif | ||
containers: | ||
- name: ${deployment_name} | ||
image: ${image_name} | ||
imagePullPolicy: Always | ||
startupProbe: | ||
tcpSocket: | ||
port: ${stats_port} | ||
periodSeconds: 3 | ||
## Extend the number of probes well beyond the duration of the test | ||
## driver waiting for the container to start. | ||
failureThreshold: 1000 | ||
args: | ||
- "--server=${server_target}" | ||
- "--stats_port=${stats_port}" | ||
- "--qps=${qps}" | ||
- "--rpc=${rpc}" | ||
- "--metadata=${metadata}" | ||
% if request_payload_size > 0: | ||
- "--request_payload_size=${request_payload_size}" | ||
% endif | ||
% if response_payload_size > 0: | ||
- "--response_payload_size=${response_payload_size}" | ||
% endif | ||
- "--print_response=${print_response}" | ||
% if enable_csm_observability: | ||
- "--enable_csm_observability=true" | ||
% endif | ||
## #################################################################### | ||
## TODO(cl/698639274): Remove the these env once this CL is released. | ||
env: | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: NAMESPACE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: OTEL_RESOURCE_ATTRIBUTES | ||
value: k8s.pod.name=$(POD_NAME),k8s.namespace.name=$(NAMESPACE_NAME) | ||
## ##################################################################### | ||
ports: | ||
- containerPort: ${stats_port} | ||
resources: | ||
limits: | ||
cpu: 800m | ||
memory: 512Mi | ||
requests: | ||
cpu: 100m | ||
memory: 512Mi | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: ${namespace_name} | ||
labels: | ||
name: ${namespace_name} | ||
owner: xds-k8s-interop-test | ||
mesh.cloud.google.com/csm-injection: proxyless | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ${deployment_name} | ||
namespace: ${namespace_name} | ||
labels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
owner: xds-k8s-interop-test | ||
spec: | ||
replicas: ${replica_count} | ||
selector: | ||
matchLabels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
template: | ||
metadata: | ||
labels: | ||
app: ${app_label} | ||
deployment_id: ${deployment_id} | ||
owner: xds-k8s-interop-test | ||
spec: | ||
% if service_account_name: | ||
serviceAccountName: ${service_account_name} | ||
% endif | ||
% if termination_grace_period_seconds: | ||
terminationGracePeriodSeconds: ${termination_grace_period_seconds} | ||
% endif | ||
containers: | ||
- name: ${deployment_name} | ||
image: ${image_name} | ||
imagePullPolicy: Always | ||
## TODO:(lsafran) test without this when ipv6 HC fw rules are in place | ||
% if address_type != "ipv6": | ||
startupProbe: | ||
tcpSocket: | ||
port: ${test_port} | ||
periodSeconds: 3 | ||
## Extend the number of probes well beyond the duration of the test | ||
## driver waiting for the container to start. | ||
failureThreshold: 1000 | ||
% endif | ||
args: | ||
- "--port=${test_port}" | ||
% if enable_csm_observability: | ||
- "--enable_csm_observability=true" | ||
% endif | ||
% if address_type: | ||
- "--address_type=${address_type}" | ||
% endif | ||
## #################################################################### | ||
## TODO(cl/698639274): Remove the these env once this CL is released. | ||
env: | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: NAMESPACE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: OTEL_RESOURCE_ATTRIBUTES | ||
value: k8s.pod.name=$(POD_NAME),k8s.namespace.name=$(NAMESPACE_NAME) | ||
## ##################################################################### | ||
ports: | ||
- containerPort: ${test_port} | ||
resources: | ||
limits: | ||
cpu: 800m | ||
memory: 512Mi | ||
requests: | ||
cpu: 100m | ||
memory: 512Mi | ||
... |
Oops, something went wrong.