You've already forked simplefilehub
add kubernetes configs
Build and Push Docker Image / build-and-push (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: simplefilehub-config
|
||||||
|
namespace: exam-varga
|
||||||
|
data:
|
||||||
|
test.txt: |
|
||||||
|
lorem ipsum
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: simplefilehub
|
||||||
|
namespace: exam-varga
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: simplefilehub
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: simplefilehub
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: simplefilehub-config-volume
|
||||||
|
configMap:
|
||||||
|
name: simplefilehub-config
|
||||||
|
- name: simplefilehub-storage-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: simplefilehub-pv-claim
|
||||||
|
|
||||||
|
containers:
|
||||||
|
- name: simplefilehub
|
||||||
|
image: br0kenpixel/simplefilehub:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8501
|
||||||
|
volumeMounts:
|
||||||
|
- name: simplefilehub-storage-volume
|
||||||
|
mountPath: /app/storage
|
||||||
|
- name: simplefilehub-config-volume
|
||||||
|
mountPath: /app/configmapcontent
|
||||||
+14
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: simplefilehub-storage-volume
|
||||||
|
labels:
|
||||||
|
type: local
|
||||||
|
spec:
|
||||||
|
storageClassName: manual
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
hostPath:
|
||||||
|
path: "/mnt/data"
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: simplefilehub-pv-claim
|
||||||
|
namespace: exam-varga
|
||||||
|
spec:
|
||||||
|
storageClassName: manual
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Mi
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: simplefilehub-service
|
||||||
|
namespace: exam-varga
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: simplefilehub
|
||||||
|
type: NodePort
|
||||||
|
ports:
|
||||||
|
- port: 8501
|
||||||
|
targetPort: 8501
|
||||||
|
nodePort: 30000
|
||||||
Reference in New Issue
Block a user