# h5ai

# What is h5ai?

h5ai는 모던하고 심플한 파일 서버로 간단하게 설치하여 사용할 수 있다.

h5ai Screenshot
h5ai Screenshot

# Prerequisites


# Install

cat <<EOF | kubectl apply -f -
---
kind: Pod
apiVersion: v1
metadata:
  name: h5ai
  labels:
    app: h5ai
spec:
  containers:
    - name: h5ai
      image: awesometic/h5ai:latest
      imagePullPolicy: IfNotPresent
      ports:
        - containerPort: 80
      volumeMounts:
        - mountPath: "/h5ai"
          name: storage-volume
      env:
        - name: PUID
          value: "1000"
        - name: PGID
          value: "1000"
        - name: TZ
          value: "Asia/Seoul"
  volumes:
    - name: storage-volume
      hostPath:
        path: /mnt/nfs
---
kind: Service
apiVersion: v1
metadata:
  name: h5ai
spec:
  selector:
    app: h5ai
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
      nodePort: 30000
  type: NodePort
EOF
kind: Pod
apiVersion: v1
metadata:
  name: h5ai
  labels:
    app: h5ai
spec:
  containers:
    - name: h5ai
      image: awesometic/h5ai:latest
      imagePullPolicy: IfNotPresent
      ports:
        - containerPort: 80
      volumeMounts:
        - mountPath: "/h5ai"
          name: storage-volume
      env:
        - name: PUID
          value: "1000"
        - name: PGID
          value: "1000"
        - name: TZ
          value: "Asia/Seoul"
  volumes:
    - name: storage-volume
      hostPath:
        path: /mnt/nfs
kind: Service
apiVersion: v1
metadata:
  name: h5ai
spec:
  selector:
    app: h5ai
  ports:
    - protocol: TCP
      port: 80
      targetPort: 80
      nodePort: 30000
  type: NodePort

That's it! 🎉


# memo