| {{/* |
| # Copyright 2022-present Open Networking Foundation |
| |
| # SPDX-License-Identifier: Apache-2.0 |
| */}} |
| |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: {{ include "aether-enodebd.fullname" . }} |
| labels: |
| {{- include "aether-enodebd.labels" . | nindent 4 }} |
| spec: |
| {{- if not .Values.autoscaling.enabled }} |
| replicas: {{ .Values.replicaCount }} |
| {{- end }} |
| selector: |
| matchLabels: |
| {{- include "aether-enodebd.selectorLabels" . | nindent 6 }} |
| template: |
| metadata: |
| {{- with .Values.podAnnotations }} |
| annotations: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| labels: |
| {{- include "aether-enodebd.selectorLabels" . | nindent 8 }} |
| spec: |
| {{- with .Values.imagePullSecrets }} |
| imagePullSecrets: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| containers: |
| - name: {{ .Chart.Name }} |
| securityContext: |
| {{- toYaml .Values.securityContext | nindent 12 }} |
| image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
| imagePullPolicy: {{ .Values.image.pullPolicy }} |
| ports: |
| {{- with .Values.ports }} |
| {{- range $key, $port := . }} |
| - name: {{ $key }} |
| {{ toYaml $port | nindent 14 }} |
| {{- end }} |
| {{- end }} |
| resources: |
| {{- toYaml .Values.resources | nindent 12 }} |
| volumeMounts: |
| - name: config-volume |
| mountPath: /opt/enodebd/magma_configs/enodebd.yml |
| subPath: enodebd.yml |
| volumes: |
| - name: config-volume |
| configMap: |
| name: {{ template "aether-enodebd.fullname" . }} |
| {{- with .Values.nodeSelector }} |
| nodeSelector: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| {{- with .Values.affinity }} |
| affinity: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |
| {{- with .Values.tolerations }} |
| tolerations: |
| {{- toYaml . | nindent 8 }} |
| {{- end }} |