# See the License for the specific language governing permissions and
# limitations under the License.
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ric-robot.fullname" . }}
heritage: {{ .Release.Service }}
spec:
replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "ric-robot.name" . }}
+ release: {{ .Release.Name }}
template:
metadata:
+ {{- if .Values.rtmgr.annotations }}
+ annotations:
+ {{- .Values.rtmgr.annotations | nindent 8 -}}
+ {{ end }}
labels:
- app.kubernetes.io/instance: {{ .Release.Name }}
- app.kubernetes.io/managed-by: {{ .Release.Service }}
+ app: {{ include "ric-robot.name" . }}
+ release: {{ .Release.Name }}
+ robotImplementation: {{ .Values.robotImplementation }}
spec:
containers:
- name: {{ include "ric-robot.name" . }}
- name: RICPLT_NAMESPACE
value: {{ .Release.Namespace }}
- name: RICPLT_RELEASE_NAME
- value: {{ .Values.Release.HelmReleaseName }}
+ value: {{ .Release.Name }}
- name: RICPLT_COMPONENTS
value: {{ keys .Values.ric.platform.components | join " " }}
ports: