Last active
February 17, 2025 05:21
-
-
Save quangvinh2080/48919a8a7ef34784649b4ab84fa4587c to your computer and use it in GitHub Desktop.
simple deployment and service with helm #kubernetes #helm
This file contains hidden or 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: {{ include "oryza-nginx.fullname" . }} | |
| labels: | |
| {{- include "oryza-nginx.labels" . | nindent 4 }} | |
| spec: | |
| replicas: {{ .Values.replicaCount }} | |
| selector: | |
| matchLabels: | |
| {{- include "oryza-nginx.selectorLabels" . | nindent 6 }} | |
| template: | |
| metadata: | |
| labels: | |
| {{- include "oryza-nginx.selectorLabels" . | nindent 8 }} | |
| spec: | |
| containers: | |
| - name: {{ .Chart.Name }} | |
| image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
| ports: | |
| - name: http | |
| containerPort: 80 | |
| - name: https | |
| containerPort: 443 | |
| env: | |
| {{- toYaml .Values.env | nindent 12 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment