Skip to content

Instantly share code, notes, and snippets.

@blackrez
Created November 16, 2018 13:51
Show Gist options
  • Save blackrez/4786e2423a512998a82ea8adfbe84fa5 to your computer and use it in GitHub Desktop.
Save blackrez/4786e2423a512998a82ea8adfbe84fa5 to your computer and use it in GitHub Desktop.
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: minio
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
app: minio
spec:
containers:
- args:
- '--config-dir'
- /tmp/config
- server
- /storage
env:
- name: MINIO_ACCESS_KEY
value: FM3ZTJ4QYJ0J2WANERFR
- name: MINIO_SECRET_KEY
value: EHXplaSkMcHKkpmtMxk21iUcRJmOCK8u6dhOHPwv
image: minio/minio
imagePullPolicy: Always
name: minio
ports:
- containerPort: 9000
protocol: TCP
resources: {}
securityContext:
runAsUser: 1001
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /storage
name: storage
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: storage
persistentVolumeClaim:
claimName: minio-pv-claim
@blackrez
Copy link
Author

And the service :

apiVersion: v1
kind: Service
metadata:
  name: minio-deployment
  namespace: helm-demo
spec:
  ports:
    - name: minio
      port: 9000
      protocol: TCP
      targetPort: 9000
  selector:
    app: minio
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment