Added MiniIO to platform
This commit is contained in:
parent
eea5a056fe
commit
b7cd39609f
6 changed files with 175 additions and 0 deletions
16
charts/platform-minio/templates/service.yaml
Normal file
16
charts/platform-minio/templates/service.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: platform-minio
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: platform-minio
|
||||
ports:
|
||||
- name: api
|
||||
port: 9000
|
||||
targetPort: 9000
|
||||
- name: console
|
||||
port: 9001
|
||||
targetPort: 9001
|
||||
50
charts/platform-minio/templates/statefulset.yaml
Normal file
50
charts/platform-minio/templates/statefulset.yaml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: platform-minio
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
serviceName: platform-minio
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: platform-minio
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: platform-minio
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
fsGroupChangePolicy: "OnRootMismatch"
|
||||
containers:
|
||||
- name: minio
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
args:
|
||||
- server
|
||||
- /data
|
||||
- --console-address
|
||||
- ":9001"
|
||||
ports:
|
||||
- name: api
|
||||
containerPort: 9000
|
||||
- name: console
|
||||
containerPort: 9001
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ .Values.auth.existingSecret }}
|
||||
volumeMounts:
|
||||
- name: minio-data
|
||||
mountPath: /data
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: minio-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.storage.className | quote }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size | quote }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue