Created
September 4, 2017 11:03
-
-
Save a-v-ebrahimi/48dac076e3f320ee2a53f833a2585d5c to your computer and use it in GitHub Desktop.
sample YAML
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/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: {{ template "fullname" . }} | |
namespace: "{{ .Values.namespace }}" | |
labels: | |
chart: "chartNameVersion" | |
spec: | |
serviceName: {{ template "fullname" . }} | |
replicas: {{ .Values.replicaCount }} | |
template: | |
metadata: | |
labels: | |
app: {{ template "fullname" . }} | |
spec: | |
containers: | |
- name: _Chart_Name | |
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | |
command: ["sh", "-c", "ls /opt/gsec; sleep 6000"] | |
# imagePullPolicy: {{ .Values.image.pullPolicy }} | |
# restartPolicy: Always | |
resources: | |
#{{ toYaml .Values.resources | indent 12 }} | |
env: | |
- name: REMOTE_USER | |
valueFrom: | |
secretKeyRef: | |
name: gsec | |
key: RemoteUser | |
volumeMounts: | |
- name: datadir | |
mountPath: "{{ .Values.storage.DataDirectory }}" | |
- name: gsec | |
readOnly: true | |
mountPath: /opt/gsec | |
volumes: | |
- name: gsec | |
secret: | |
secretName: gsec | |
volumeClaimTemplates: | |
- metadata: | |
name: datadir | |
annotations: | |
volume.beta.kubernetes.io/storage-class: "{{ .Values.storage.StorageClass }}" | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: {{ .Values.storage.Size }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment