filestash
filestash copied to clipboard
how to deploy filestash on k8s? is there example yaml?
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
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 Thanks
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.