Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nivleshc/702b61b33acb3050b2dde3815a1e5354 to your computer and use it in GitHub Desktop.
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.
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