Installing h5ai on Kubernetes

서론

  • 가장 심플한 Http web server로 개인적으로 h5ai 를 사용하고 있다.
  • Docker로는 제공되고 있지만, Kubernetes에서 설치해서 간단하게 사용하고자 kubernetes pod-svc yaml 기록을 남긴다.

h5ai · modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee · larsjung.de
modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee
Docker

cat <<EOF | kubectl apply -f -
---
kind: Pod
apiVersion: v1
metadata:
  name: h5ai
  labels:
    app: h5ai
spec:
  containers:
    - name: h5ai
      image: genomehubs/h5ai:latest
      imagePullPolicy: IfNotPresent
      ports:
        - containerPort: 8080
      volumeMounts:
        - mountPath: "/var/www/html/data"
          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: 8080
      targetPort: 8080
      nodePort: 31111
  type: NodePort
EOF
You've successfully subscribed to taking
Great! Next, complete checkout to get full access to all premium content.
Error! Could not sign up. invalid link.
Welcome back! You've successfully signed in.
Error! Could not sign in. Please try again.
Success! Your account is fully activated, you now have access to all content.
Error! Stripe checkout failed.
Success! Your billing info is updated.
Error! Billing info update failed.