Created
August 21, 2024 10:05
-
-
Save nivleshc/702b61b33acb3050b2dde3815a1e5354 to your computer and use it in GitHub Desktop.
This gist contains code from the helm/s3-csi-demo/templates/nginx.yaml file which is part of the blog-amazon-s3-filesystem-for-amazon-eks-cluster repository.
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: v1 | |
kind: Pod | |
metadata: | |
name: {{ .Values.nginx.name }} | |
labels: | |
{{- with .Values.nginx.labels }} | |
{{- toYaml . | nindent 4 }} | |
{{- end }} | |
spec: | |
containers: | |
- name: {{ .Values.nginx.spec.containers.name }} | |
image: {{ .Values.nginx.spec.containers.image }} | |
ports: | |
- containerPort: {{ .Values.nginx.spec.containers.ports.containerPort }} | |
protocol: {{ .Values.nginx.spec.containers.ports.protocol }} | |
volumeMounts: | |
- name: {{ .Values.nginx.spec.containers.volumeMount.name }} | |
mountPath: {{ .Values.nginx.spec.containers.volumeMount.mountPath }} | |
volumes: | |
- name: {{ .Values.nginx.spec.volumes.name }} | |
persistentVolumeClaim: | |
claimName: {{ .Values.nginx.spec.volumes.persistentVolumeClaim.claimName }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment