Add Labels for Application/Component - CoreDNS

Add application and component labels for CoreDNS

Change-Id: I05372334cd769528648a1453a8ced23e7bf968da
This commit is contained in:
Anthony Lin 2018-05-16 01:45:17 +00:00
parent 16f23daee9
commit 5f608430dc
1 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,8 @@ 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.
*/}}
{{- $envAll := . }}
---
apiVersion: extensions/v1beta1
kind: Deployment
@ -33,6 +35,7 @@ spec:
template:
metadata:
labels:
{{ tuple $envAll "kubernetes" "coredns" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
{{ .Values.service.name }}: enabled
annotations:
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
@ -59,7 +62,7 @@ spec:
- name: coredns
image: {{ .Values.images.tags.coredns | quote }}
imagePullPolicy: {{ .Values.images.pull_policy | quote }}
{{ tuple . .Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
{{ tuple $envAll $envAll.Values.pod.resources.coredns | include "helm-toolkit.snippets.kubernetes_resources" | indent 8 }}
args: [ "-conf", "/etc/coredns/Corefile" ]
volumeMounts:
- name: config-volume