64 lines
2.4 KiB
YAML
64 lines
2.4 KiB
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
|
|
|
|
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.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.rack_deployment }}
|
|
{{- $envAll := . }}
|
|
{{- $serviceAccountName := "maas-ingress-errors" }}
|
|
{{- $mounts_maas_rack := .Values.pod.mounts.maas_rack }}
|
|
{{- $mounts_maas_rack_init := .Values.pod.mounts.maas_rack.init_container }}
|
|
|
|
{{ tuple $envAll "rack_controller" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
|
---
|
|
apiVersion: apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: maas-ingress-errors
|
|
spec:
|
|
serviceName: maas-rack
|
|
replicas: {{ .Values.pod.replicas.ingress_errors }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ tuple $envAll "maas" "ingress-errors" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
|
spec:
|
|
serviceAccountName: {{ $serviceAccountName }}
|
|
nodeSelector:
|
|
{{ .Values.labels.rack.node_selector_key }}: {{ .Values.labels.rack.node_selector_value }}
|
|
dnsPolicy: ClusterFirst
|
|
containers:
|
|
- name: maas-ingress-errors
|
|
image: {{ .Values.images.tags.error_pages }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
{{ tuple $envAll $envAll.Values.pod.resources.maas_ingress_errors | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
|
command:
|
|
- /tmp/maas-ingress-errors.sh
|
|
- start
|
|
env:
|
|
- name: BIND_PORT
|
|
value: {{ tuple "maas_ingress" "podport" "error_pages" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
|
volumeMounts:
|
|
- mountPath: /tmp/maas-ingress-errors.sh
|
|
name: maas-bin
|
|
subPath: maas-ingress-errors
|
|
readOnly: true
|
|
volumes:
|
|
- name: maas-bin
|
|
configMap:
|
|
name: maas-bin
|
|
defaultMode: 0555
|
|
{{- end }}
|