filestash icon indicating copy to clipboard operation
filestash copied to clipboard

how to deploy filestash on k8s? is there example yaml?

Open zhucan opened this issue 2 years ago • 3 comments

apiVersion: v1
kind: Service
metadata:
  name: filestash
  namespace: monitoring
  labels:
    app: filestash
spec:
  type: NodePort
  ports:
  - name: http
    port: 8334
    targetPort: 8334
    nodePort: 8334
    protocol: TCP
  selector:
    app: filestash

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: filestash
  namespace: monitoring
  labels:
    app: filestash
spec:
  replicas: 2
  selector:
    matchLabels:
      app: filestash
  template:
    metadata:
      labels:
        app: filestash
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchLabels:
                app: filestash
            topologyKey: kubernetes.io/hostname
      containers:
        - image: machines/filestash
          name: filestash
          ports:
            - containerPort: 8334
          imagePullPolicy: IfNotPresent

zhucan avatar Nov 16 '22 09:11 zhucan

just convert provided docker-compose file 1-to-1 into a set of k8s objects. Surely you would need to decide about PVC and about Services how you expose it.

DmitryZakharov avatar Nov 21 '22 11:11 DmitryZakharov

@DmitryZakharov Thanks

zhucan avatar Nov 22 '22 02:11 zhucan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '23 14:06 stale[bot]