Andre Fernando Zanella Kantek 31d0d5db97 Add toleration for ptp-notification application
Toleration for the pods composing the application is being added
to this change. The application is composed of a daemonset and a
deployment so the configuration is added on both templates

Tested in an AIO-SX:
- enabled the node taint
- deleted a pod without toleration and observed that the new one
stays in "pending"
- delete the application pods and observed the new ones to reach
"running" state
- remove the node taint
- observe the pending pod reaches "running"

Story: 2009232
Task: 43348

Signed-off-by: Andre Fernando Zanella Kantek <AndreFernandoZanella.Kantek@windriver.com>
Change-Id: I92ce19145efb92847ef59bc5e1ed65cddbe1cf57
2021-09-30 09:26:35 -04:00

45 lines
1.1 KiB
YAML

#
# Copyright (c) 2021 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: registration
namespace: {{ .Values.global.namespace }}
labels:
app: rabbitmq
spec:
replicas: 1
selector:
matchLabels:
app: rabbitmq
template:
metadata:
labels:
app: rabbitmq
spec:
imagePullSecrets:
- name: {{ .Values.registration.imagePullSecrets }}
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
{{- if .Values.registration.affinity }}
affinity:
{{ toYaml .Values.registration.affinity | indent 8 }}
{{- end }}
containers:
- name: rabbitmq
image: "{{ .Values.registration.image.repository }}:{{ .Values.registration.image.tag }}"
env:
- name: RABBITMQ_DEFAULT_USER
value: "admin"
- name: RABBITMQ_DEFAULT_PASS
value: "admin"
- name: RABBITMQ_DEFAULT_PORT
value: "5672"
---