离线的helm install 安装的minio失败了,可以手动创建几个,把下面的工作负载导进去,报错的话再建立minio的存储卷 ,然后再重启ks-install容器 就好了
kind: Deployment
apiVersion: apps/v1
metadata:
name: minio
namespace: kubesphere-system
labels:
app: minio
app.kubernetes.io/managed-by: Helm
chart: minio-2.5.16
heritage: Helm
release: ks-minio
annotations:
deployment.kubernetes.io/revision: ‘1’
meta.helm.sh/release-name: ks-minio
meta.helm.sh/release-namespace: kubesphere-system
spec:
replicas: 1
selector:
matchLabels:
app: minio
release: ks-minio
template:
metadata:
name: minio
creationTimestamp: null
labels:
app: minio
release: ks-minio
annotations:
checksum/config: c6cc7f4b40064dffd59b339e133fa4819f787573ee18e1d001435aa4daff8ba2
checksum/secrets: f9625c177e0e74a3b9997c3c65189ebffcfbde7aaa910de0ba38b48b032c1a96
spec:
volumes:
- name: export
persistentVolumeClaim:
claimName: minio
- name: minio-user
secret:
secretName: minio
defaultMode: 420
- name: minio-config-dir
emptyDir: {}
containers:
- name: minio
image: ‘minio/minio:RELEASE.2019-08-07T01-59-21Z’
command:
- /bin/sh
- ‘-ce’
- /usr/bin/docker-entrypoint.sh minio -C /root/.minio/ server /data
ports:
- name: service
containerPort: 9000
protocol: TCP
env:
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: minio
key: accesskey
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: minio
key: secretkey
- name: MINIO_BROWSER
value: ‘on’
resources:
requests:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: export
mountPath: /data
- name: minio-config-dir
mountPath: /root/.minio/
livenessProbe:
httpGet:
path: /minio/health/live
port: service
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 30
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /minio/health/ready
port: service
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 15
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
serviceAccountName: ks-minio
serviceAccount: ks-minio
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600