70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
apiVersion: fission.io/v1
|
|
kind: Environment
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: nodend
|
|
namespace: default
|
|
spec:
|
|
terminationGracePeriod: 360
|
|
builder: {}
|
|
keeparchive: false
|
|
poolsize: 0
|
|
resources: {}
|
|
runtime:
|
|
image: ghcr.io/fission/node-env
|
|
container:
|
|
name: nodend
|
|
volumeMounts:
|
|
- name: cvol
|
|
mountPath: /etc/cvoldata
|
|
readOnly: true
|
|
podspec:
|
|
hostname: foo-bar
|
|
# A container which will be merged with for pool manager
|
|
containers:
|
|
- name: nodend
|
|
image: ghcr.io/fission/node-env
|
|
volumeMounts:
|
|
- name: funcvol
|
|
mountPath: /etc/funcdata
|
|
readOnly: true
|
|
# A additional container in the pods
|
|
- name: yanode
|
|
image: ghcr.io/fission/node-env
|
|
command: ['sh', '-c', 'sleep 36000000000']
|
|
# Init container before function
|
|
initContainers:
|
|
- name: init-node
|
|
image: ghcr.io/fission/node-env
|
|
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
|
volumeMounts:
|
|
- name: infopod
|
|
mountPath: /etc/infopod
|
|
readOnly: false
|
|
tolerations:
|
|
- key: "reservation"
|
|
operator: "Equal"
|
|
value: "fission"
|
|
effect: "NoSchedule"
|
|
# Additional volumes
|
|
volumes:
|
|
- name: infopod
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
- name: funcvol
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
- name: cvol
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
version: 3
|