forked from ci4s/pipeline-convert
79 lines
1.4 KiB
YAML
79 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pipeline-convert
|
|
namespace: argo
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: pipeline-convert
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pipeline-convert
|
|
spec:
|
|
containers:
|
|
- name: pipeline-convert
|
|
image: pipeline-image
|
|
#imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- mountPath: /var/log/pipeline-convert
|
|
name: pipeline-convert-log
|
|
subPath: pipeline-convert-nfs-log
|
|
volumes:
|
|
- name: pipeline-convert-log
|
|
persistentVolumeClaim:
|
|
claimName: pipeline-convert-pvc-nfs
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pipeline-convert-service
|
|
namespace: argo
|
|
spec:
|
|
selector:
|
|
app: pipeline-convert
|
|
type: NodePort
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
protocol: TCP
|
|
nodePort: 32000
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: pipeline-convert-pv-nfs
|
|
namespace: argo
|
|
spec:
|
|
capacity:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteMany
|
|
nfs:
|
|
path: /data/nfs
|
|
server: 172.21.183.28
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: pipeline-convert-pvc-nfs
|
|
namespace: argo
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteMany
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
storageClassName: ""
|
|
|
|
|
|
|
|
|
|
|