From c00de6366129aa85ada9d8f6c07856fbd540858a Mon Sep 17 00:00:00 2001 From: Shibo Wang <33282704+Saber-W@users.noreply.github.com> Date: Thu, 5 Aug 2021 00:28:48 -0700 Subject: [PATCH] Add `protocol: TCP` value under `ports` key to avoid the known limitation for Kubernetes 1.19 (#372) * Add `protocol: TCP` value under `ports` key * Update version --- ...y-operator-controller-manager-metrics-service_v1_service.yaml | 1 + .../opentelemetry-operator-webhook-service_v1_service.yaml | 1 + .../manifests/opentelemetry-operator.clusterserviceversion.yaml | 1 + config/default/manager_auth_proxy_patch.yaml | 1 + config/rbac/auth_proxy_service.yaml | 1 + config/webhook/service.yaml | 1 + 6 files changed, 6 insertions(+) diff --git a/bundle/manifests/opentelemetry-operator-controller-manager-metrics-service_v1_service.yaml b/bundle/manifests/opentelemetry-operator-controller-manager-metrics-service_v1_service.yaml index 6dba7e0d01..9e8b2cbd9c 100644 --- a/bundle/manifests/opentelemetry-operator-controller-manager-metrics-service_v1_service.yaml +++ b/bundle/manifests/opentelemetry-operator-controller-manager-metrics-service_v1_service.yaml @@ -9,6 +9,7 @@ spec: ports: - name: https port: 8443 + protocol: TCP targetPort: https selector: control-plane: controller-manager diff --git a/bundle/manifests/opentelemetry-operator-webhook-service_v1_service.yaml b/bundle/manifests/opentelemetry-operator-webhook-service_v1_service.yaml index 7017d35ae5..653d80ef11 100644 --- a/bundle/manifests/opentelemetry-operator-webhook-service_v1_service.yaml +++ b/bundle/manifests/opentelemetry-operator-webhook-service_v1_service.yaml @@ -6,6 +6,7 @@ metadata: spec: ports: - port: 443 + protocol: TCP targetPort: 9443 selector: control-plane: controller-manager diff --git a/bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml b/bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml index aeb344e88c..7559d3e563 100644 --- a/bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml +++ b/bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml @@ -233,6 +233,7 @@ spec: ports: - containerPort: 8443 name: https + protocol: TCP resources: {} serviceAccountName: opentelemetry-operator-controller-manager terminationGracePeriodSeconds: 10 diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index a2dc7c4132..6f8c02fdd9 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -19,6 +19,7 @@ spec: ports: - containerPort: 8443 name: https + protocol: TCP - name: manager args: - "--metrics-addr=127.0.0.1:8080" diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml index 6cf656be14..65e99c69f2 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -10,5 +10,6 @@ spec: - name: https port: 8443 targetPort: https + protocol: TCP selector: control-plane: controller-manager diff --git a/config/webhook/service.yaml b/config/webhook/service.yaml index 31e0f82959..a958908569 100644 --- a/config/webhook/service.yaml +++ b/config/webhook/service.yaml @@ -8,5 +8,6 @@ spec: ports: - port: 443 targetPort: 9443 + protocol: TCP selector: control-plane: controller-manager