minio kubernetes

From Obese Horse, 4 Years ago, written in Plain Text, viewed 211 times.
URL https://paste.steamr.com/view/6f9e57e3 Embed
Download Paste or View Raw
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4.   name: minio
  5.   labels:
  6.     app: minio
  7. spec:
  8.   containers:
  9.     - name: minio
  10.       imagePullPolicy: Always
  11.       image: minio/minio
  12.       volumeMounts:
  13.         - name: minio-data
  14.           mountPath: /data
  15.       args:
  16.         - server
  17.         - /data
  18.       env:
  19.         # MinIO access key and secret key
  20.         - name: MINIO_ACCESS_KEY
  21.           value: "minio"
  22.         - name: MINIO_SECRET_KEY
  23.           value: "minio123"
  24.       ports:
  25.         - containerPort: 9000
  26.       # Readiness probe detects situations when MinIO server instance
  27.       # is not ready to accept traffic. Kubernetes doesn't forward
  28.       # traffic to the pod while readiness checks fail.
  29.       readinessProbe:
  30.         httpGet:
  31.           path: /minio/health/ready
  32.           port: 9000
  33.         initialDelaySeconds: 120
  34.         periodSeconds: 20
  35.       # Liveness probe detects situations where MinIO server instance
  36.       # is not working properly and needs restart. Kubernetes automatically
  37.       # restarts the pods if liveness checks fail.
  38.       livenessProbe:
  39.         httpGet:
  40.           path: /minio/health/live
  41.           port: 9000
  42.         initialDelaySeconds: 120
  43.         periodSeconds: 20
  44.  
  45.   volumes:
  46.     - name: minio-data
  47.       persistentVolumeClaim:
  48.         claimName: minio-data-0
  49. ---
  50. apiVersion: v1
  51. kind: Service
  52. metadata:
  53.   # This name uniquely identifies the service
  54.   name: minio-service
  55. spec:
  56.   type: LoadBalancer
  57.   ports:
  58.     - port: 9000
  59.       targetPort: 9000
  60.       protocol: TCP
  61.   selector:
  62.     # Looks for labels `app:minio` in the namespace and applies the spec
  63.     app: minio
  64. ---
  65. kind: PersistentVolumeClaim
  66. apiVersion: v1
  67. metadata:
  68.   name: minio-data-0
  69.   labels:
  70.     app: minio
  71.   annotations:
  72.     volume.beta.kubernetes.io/storage-class: minio-pod-storage
  73. spec:
  74.   accessModes:
  75.   - ReadWriteOnce
  76.   resources:
  77.     requests:
  78.       storage: 5Gi
  79.   dataSource:
  80. ---
  81. kind: StorageClass
  82. apiVersion: storage.k8s.io/v1
  83. metadata:
  84.   name: minio-pod-storage
  85. provisioner: kubernetes.io/vsphere-volume
  86. parameters:
  87.     diskformat: thin
  88.     datastore: itsoesxcaas01_LUN01
  89.     fstype: ext3
  90.  

Reply to "minio kubernetes"

Here you can reply to the paste above