You've already forked vk26-onlinehasherapp
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: onlinefilehasher
|
|
namespace: exam-varga
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: onlinefilehasher
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: onlinefilehasher
|
|
spec:
|
|
volumes:
|
|
- name: onlinefilehasher-config-volume
|
|
configMap:
|
|
name: onlinefilehasher-config
|
|
- name: onlinefilehasher-input-storage-volume
|
|
persistentVolumeClaim:
|
|
claimName: onlinefilehasher-input-pv-claim
|
|
- name: onlinefilehasher-output-storage-volume
|
|
persistentVolumeClaim:
|
|
claimName: onlinefilehasher-output-pv-claim
|
|
|
|
containers:
|
|
- name: onlinefilehasher
|
|
image: br0kenpixel/onlinehasherapp:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8501
|
|
volumeMounts:
|
|
- name: onlinefilehasher-input-storage-volume
|
|
mountPath: /app/input
|
|
- name: onlinefilehasher-output-storage-volume
|
|
mountPath: /app/output
|
|
- name: onlinefilehasher-config-volume
|
|
mountPath: /app/config.txt
|
|
subPath: config.txt
|
|
|
|
initContainers:
|
|
- name: init-onlinefilehasher
|
|
image: br0kenpixel/onlinehasherapp:latest
|
|
imagePullPolicy: Always
|
|
command: ["sh", "-c", "echo example1 > /app/input/example1.txt && python /app/initstuff.py"]
|
|
volumeMounts:
|
|
- name: onlinefilehasher-input-storage-volume
|
|
mountPath: /app/input
|
|
- name: onlinefilehasher-output-storage-volume
|
|
mountPath: /app/output
|
|
- name: onlinefilehasher-config-volume
|
|
mountPath: /app/config.txt
|
|
subPath: config.txt |