|
@@ -78,6 +78,31 @@
|
|
# volumeMounts:
|
|
# volumeMounts:
|
|
# - name: workdir
|
|
# - name: workdir
|
|
# mountPath: /go
|
|
# mountPath: /go
|
|
|
|
+---
|
|
|
|
+apiVersion: v1
|
|
|
|
+kind: PersistentVolume
|
|
|
|
+metadata:
|
|
|
|
+ name: argo-pv-workflow
|
|
|
|
+ labels:
|
|
|
|
+ type: local
|
|
|
|
+ argowf: argo-pv-workflow
|
|
|
|
+spec:
|
|
|
|
+ storageClassName: standard
|
|
|
|
+ capacity:
|
|
|
|
+ storage: 10Gi
|
|
|
|
+ accessModes:
|
|
|
|
+ - ReadWriteOnce
|
|
|
|
+ hostPath:
|
|
|
|
+ path: "/kbctl"
|
|
|
|
+ nodeAffinity:
|
|
|
|
+ required:
|
|
|
|
+ nodeSelectorTerms:
|
|
|
|
+ - matchExpressions:
|
|
|
|
+ - key: kubernetes.io/hostname
|
|
|
|
+ operator: In
|
|
|
|
+ values:
|
|
|
|
+ - k8s
|
|
|
|
+---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Sensor
|
|
kind: Sensor
|
|
metadata:
|
|
metadata:
|
|
@@ -116,15 +141,15 @@ spec:
|
|
- metadata:
|
|
- metadata:
|
|
name: workdir
|
|
name: workdir
|
|
spec:
|
|
spec:
|
|
- storageClassName: local-storage
|
|
|
|
- accessModes: ["ReadWriteOnce"]
|
|
|
|
- # selector:
|
|
|
|
- # matchLabels:
|
|
|
|
- # name: models-1-0-0
|
|
|
|
|
|
+ storageClassName: standard
|
|
|
|
+ accessModes:
|
|
|
|
+ - ReadWriteOnce
|
|
|
|
+ selector:
|
|
|
|
+ matchLabels:
|
|
|
|
+ argowf: argo-pv-workflow
|
|
resources:
|
|
resources:
|
|
requests:
|
|
requests:
|
|
storage: 1Gi
|
|
storage: 1Gi
|
|
-
|
|
|
|
templates:
|
|
templates:
|
|
- name: ci-example
|
|
- name: ci-example
|
|
steps:
|
|
steps:
|
|
@@ -165,6 +190,7 @@ spec:
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: workdir
|
|
- name: workdir
|
|
mountPath: /go
|
|
mountPath: /go
|
|
|
|
+
|
|
- name: run-hello
|
|
- name: run-hello
|
|
inputs:
|
|
inputs:
|
|
parameters:
|
|
parameters:
|
|
@@ -182,6 +208,7 @@ spec:
|
|
volumeMounts:
|
|
volumeMounts:
|
|
- name: workdir
|
|
- name: workdir
|
|
mountPath: /go
|
|
mountPath: /go
|
|
|
|
+
|
|
- name: release-artifact
|
|
- name: release-artifact
|
|
container:
|
|
container:
|
|
image: alpine:3.8
|
|
image: alpine:3.8
|