Created
September 15, 2020 12:53
-
-
Save karthikeyanVK/dde4772d38315b438a51bf9366a44b2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: {{ .Release.Name }}-products-deployment | |
labels: | |
app: {{ .Values.products.label.name }} | |
spec: | |
replicas: {{ .Values.products.replicas }} | |
selector: | |
matchLabels: | |
app: {{ .Values.products.label.name }} | |
template: | |
metadata: | |
labels: | |
app: {{ .Values.products.label.name }} | |
environment: {{ .Values.environment }} | |
spec: | |
containers: | |
- name: {{ .Values.products.container.name }} | |
image: {{ .Values.products.container.image }}:{{ .Values.products.container.tag }} | |
imagePullPolicy: {{ .Values.products.container.pullPolicy }} | |
ports: | |
- containerPort: {{ .Values.products.container.port }} | |
env: | |
- name: apphost | |
value: {{ .Values.apphost }} | |
- name: appenvironment | |
value: {{ .Values.environment }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment