diff --git a/deploy/autoneg.yaml b/deploy/autoneg.yaml index 0a583d1..77ba817 100644 --- a/deploy/autoneg.yaml +++ b/deploy/autoneg.yaml @@ -187,41 +187,6 @@ subjects: namespace: autoneg-system --- apiVersion: v1 -data: - controller_manager_config.yaml: | - # Copyright 2021 Google LLC - # - # Licensed under the Apache License, Version 2.0 (the "License"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # - # http://www.apache.org/licenses/LICENSE-2.0 - # - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - - apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 - kind: ControllerManagerConfig - health: - healthProbeBindAddress: :8081 - metrics: - bindAddress: 127.0.0.1:8080 - webhook: - port: 9443 - leaderElection: - leaderElect: true - resourceName: 9fe89c94.controller.autoneg.dev -kind: ConfigMap -metadata: - labels: - app: autoneg - name: autoneg-manager-config - namespace: autoneg-system ---- -apiVersion: v1 kind: Service metadata: labels: diff --git a/terraform/kubernetes/main.tf b/terraform/kubernetes/main.tf index 6891646..691e9cc 100644 --- a/terraform/kubernetes/main.tf +++ b/terraform/kubernetes/main.tf @@ -212,32 +212,6 @@ resource "kubernetes_cluster_role_binding" "clusterrolebinding_autoneg_proxy_rol } } -resource "kubernetes_config_map" "example" { - metadata { - namespace = kubernetes_namespace.namespace_autoneg_system.metadata[0].name - name = "autoneg-manager-config" - labels = { - app = "autoneg" - } - } - - data = { - "controller_manager_config.yaml" = <<-EOT - apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 - kind: ControllerManagerConfig - health: - healthProbeBindAddress: :8081 - metrics: - bindAddress: 127.0.0.1:8080 - webhook: - port: 9443 - leaderElection: - leaderElect: true - resourceName: 9fe89c94.controller.autoneg.dev - EOT - } -} - resource "kubernetes_service" "service_autoneg_controller_manager_metrics_service" { metadata { annotations = { @@ -381,4 +355,3 @@ resource "kubernetes_deployment" "deployment_autoneg_controller_manager" { kubernetes_cluster_role_binding.clusterrolebinding_autoneg_proxy_rolebinding, ] } -