47 lines
823 B
YAML
47 lines
823 B
YAML
apiVersion: fission.io/v1
|
|
kind: Function
|
|
metadata:
|
|
name: hello
|
|
namespace: default
|
|
spec:
|
|
InvokeStrategy:
|
|
ExecutionStrategy:
|
|
ExecutorType: poolmgr
|
|
MaxScale: 0
|
|
MinScale: 0
|
|
SpecializationTimeout: 120
|
|
TargetCPUPercent: 0
|
|
StrategyType: execution
|
|
environment:
|
|
name: python-27
|
|
namespace: default
|
|
package:
|
|
packageref:
|
|
name: hello-pkg
|
|
namespace: default
|
|
functionName: hello.main
|
|
|
|
---
|
|
apiVersion: fission.io/v1
|
|
kind: Package
|
|
metadata:
|
|
name: hello-pkg
|
|
namespace: default
|
|
spec:
|
|
source:
|
|
url: archive://hello-archive
|
|
buildcmd: "./build.sh"
|
|
environment:
|
|
name: python-27
|
|
namespace: default
|
|
status:
|
|
buildstatus: pending
|
|
|
|
---
|
|
kind: ArchiveUploadSpec
|
|
name: hello-archive
|
|
include:
|
|
- "hello/*.py"
|
|
- "hello/*.sh"
|
|
- "hello/requirements.txt"
|