Add example for builder podspec (#1374)
This commit is contained in:
committed by
Ta-Ching Chen
parent
d1ed089c3e
commit
e4f44ffa63
@@ -0,0 +1,24 @@
|
||||
# Adding podspec for builder of environment
|
||||
|
||||
If you see the files in the `specs` directory you will get to know that we have just generated the
|
||||
environment spec using the command
|
||||
```
|
||||
fission env create --name python --image fission/python-env --builder fission/python-builder --spec
|
||||
```
|
||||
and changed the env-python.yaml file to have below `podspec` for builder for the environment.
|
||||
|
||||
```
|
||||
nodeSelector:
|
||||
machinecap: high
|
||||
tolerations:
|
||||
- key: "env"
|
||||
value: "prod"
|
||||
operator: "Equal"
|
||||
effect: "NoSchedule"
|
||||
|
||||
```
|
||||
|
||||
If we create this environment, the builder pod that will be created will have the `PodSpec` that
|
||||
we have mentioned for builder in the environment spec.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user