-
Notifications
You must be signed in to change notification settings - Fork 37
Move podevaluator to porch-server #1119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dgyorgy-nokia
wants to merge
16
commits into
kptdev:main
Choose a base branch
from
nokia:podevaluator-to-pserver
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1ef3de9
move podevaluator to porch-server
dgyorgy-nokia 16dc936
fix copilot findings
dgyorgy-nokia 6a5ef11
modify controller to also use podevaluator
dgyorgy-nokia d064e7f
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia 8572267
fix e2e cli tests
dgyorgy-nokia 8316bf3
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia 70060eb
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia c542f39
fix lint error
dgyorgy-nokia 6b295ef
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia dc1de43
Merge main into podevaluator-to-pserver
mozesl-nokia 7b67f5e
fix lint
mozesl-nokia e87e83b
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia 55d1c1c
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia 4457d35
Merge remote-tracking branch 'origin/main' into podevaluator-to-pserver
dgyorgy-nokia dae2a27
update podevaluator related documentation after podevalautor move
dgyorgy-nokia f44ec69
address review comments
dgyorgy-nokia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,13 @@ | ||
| ### Function Pod Template | ||
|
|
||
| In order to leverage custom manifests for Pod and frontend Service of Function Pods created by Function Runner, the following additional Kubernetes Resource Manifests (KRM) need to be provisioned in the Porch environment | ||
| Function execution pods are created by the **Engine pod evaluator** (porch-server and, when enabled, porch-controllers), not Function Runner. | ||
|
|
||
| * A ConfigMap containing 2 data elements: a) a KRM of type Pod under the `template` key and b) a KRM of type Service under `serviceTemplate` key | ||
| * A Kubernetes Role providing read access to resource type ConfigMap in the porch-system namespace | ||
| * A Kubernetes RoleBinding, binding to the above listed Role to the ServiceAccount (porch-fn-runner) used by Function Runner Pod | ||
| Default manifests install Kubernetes `PodTemplate` `base-pod-template` and `ServiceTemplate` `base-service-template` in `porch-fn-system`. See `deployments/porch/22-function-templates.yaml` and [Pod Templates](../../docs/content/en/docs/6_configuration_and_deployments/configurations/components/porch-server-config/pod-templates.md). | ||
|
|
||
| All of the above KRMs are predefined in `deployment.yaml` file present in this folder. | ||
| The ConfigMap-based `--function-pod-template` flow documented previously for Function Runner is no longer used. | ||
|
|
||
| ### How to enable Function Pod Template use by Function Runner | ||
| ### How to customize | ||
|
|
||
| * Apply the [deployment.yaml manifest](deployment.yaml) from this directory | ||
| Edit `base-pod-template` in `porch-fn-system` (or the YAML in `deployments/porch/22-function-templates.yaml` before deploy). porch-server and porch-controllers already have RBAC via the `porch-function-executor` Role. | ||
|
|
||
| ``` | ||
| kubectl apply -f deployment.yaml | ||
| ``` | ||
|
|
||
| * Add an additional argument `--function-pod-template` in command section of function-runner deployment instructing it to use the Function Pod Template ConfigMap, as shown below | ||
|
|
||
| ``` | ||
| kubectl edit deployment -n porch-system function-runner | ||
| ``` | ||
|
|
||
| ``` | ||
| command: | ||
| - /server | ||
| - --config=/config.yaml | ||
| - --functions=/functions | ||
| - --pod-namespace=porch-fn-system | ||
| - --function-pod-template=kpt-function-eval-pod-template | ||
| - --max-request-body-size=6291456 # Keep this in sync with porch-server's corresponding argument | ||
| ``` | ||
|
|
||
| After the function-runner Pods restart, they will start using the Pod and Service templates from ConfigMap. | ||
| This folder's `deployment.yaml` is a historical ConfigMap example and is not wired into current porch-server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.