grpc-xds/k8s/control-plane/base/deployment.yaml (48 lines of code) (raw):

# Copyright 2023 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: apps/v1 kind: Deployment metadata: name: control-plane namespace: xds # kpt-set: ${control-plane-namespace} labels: app.kubernetes.io/component: control-plane spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: control-plane template: metadata: labels: app.kubernetes.io/name: control-plane app.kubernetes.io/component: control-plane spec: containers: - name: app image: control-plane args: [] env: [] ports: - name: app-port containerPort: 50051 - name: health-port containerPort: 50052 volumeMounts: - name: podinfo mountPath: /etc/podinfo readOnly: true serviceAccountName: control-plane terminationGracePeriodSeconds: 10 volumes: - name: grpc-xds-conf emptyDir: {} - name: nodeinfo emptyDir: {} - name: podinfo downwardAPI: items: - path: label-app-name fieldRef: fieldPath: metadata.labels['app.kubernetes.io/name'] - path: namespace fieldRef: fieldPath: metadata.namespace