Initial phase 1-3 of a per-node Kata config delivery#78
Merged
Conversation
aea9def to
002502c
Compare
| securityContext: | ||
| # Root is required to write the drop-in under /etc/k0s on the host. | ||
| # nosemgrep: yaml.kubernetes.security.run-as-non-root-unsafe-value.run-as-non-root-unsafe-value | ||
| runAsNonRoot: false |
Comment on lines
+65
to
+108
| - name: agent | ||
| # Pin a released tag — never :latest in production (KSV-0013). | ||
| image: ghcr.io/finos/5-spot-kata-config-agent:v0.1.0 | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| - name: RUST_LOG | ||
| value: "info" | ||
| - name: RUST_LOG_FORMAT | ||
| value: "json" | ||
| - name: NODE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: spec.nodeName | ||
| - name: HOST_ROOT | ||
| value: "/host" | ||
| securityContext: | ||
| # privileged is required for setns into host mount/PID namespaces | ||
| # (the `nsenter` k0s-service restart, ADR 0003). With privileged, | ||
| # allowPrivilegeEscalation must be true; the root filesystem stays | ||
| # read-only and seccomp stays RuntimeDefault to keep the escalation | ||
| # as narrow as the feature allows. | ||
| privileged: true | ||
| runAsUser: 0 | ||
| runAsGroup: 0 | ||
| # nosemgrep: yaml.kubernetes.security.run-as-non-root-unsafe-value.run-as-non-root-unsafe-value | ||
| runAsNonRoot: false | ||
| allowPrivilegeEscalation: true | ||
| readOnlyRootFilesystem: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| resources: | ||
| limits: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| requests: | ||
| cpu: 10m | ||
| memory: 16Mi | ||
| volumeMounts: | ||
| # Host root mounted writable so the agent can write the configurable | ||
| # destPath (default /etc/k0s/container.d/). The dest path is | ||
| # operator-configurable per SM, so a narrower subPath cannot be | ||
| # pinned in a shared DaemonSet spec (ADR 0003). | ||
| - name: host-root | ||
| mountPath: /host |
Comment on lines
+65
to
+108
| - name: agent | ||
| # Pin a released tag — never :latest in production (KSV-0013). | ||
| image: ghcr.io/finos/5-spot-kata-config-agent:v0.1.0 | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| - name: RUST_LOG | ||
| value: "info" | ||
| - name: RUST_LOG_FORMAT | ||
| value: "json" | ||
| - name: NODE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: spec.nodeName | ||
| - name: HOST_ROOT | ||
| value: "/host" | ||
| securityContext: | ||
| # privileged is required for setns into host mount/PID namespaces | ||
| # (the `nsenter` k0s-service restart, ADR 0003). With privileged, | ||
| # allowPrivilegeEscalation must be true; the root filesystem stays | ||
| # read-only and seccomp stays RuntimeDefault to keep the escalation | ||
| # as narrow as the feature allows. | ||
| privileged: true | ||
| runAsUser: 0 | ||
| runAsGroup: 0 | ||
| # nosemgrep: yaml.kubernetes.security.run-as-non-root-unsafe-value.run-as-non-root-unsafe-value | ||
| runAsNonRoot: false | ||
| allowPrivilegeEscalation: true | ||
| readOnlyRootFilesystem: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| resources: | ||
| limits: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| requests: | ||
| cpu: 10m | ||
| memory: 16Mi | ||
| volumeMounts: | ||
| # Host root mounted writable so the agent can write the configurable | ||
| # destPath (default /etc/k0s/container.d/). The dest path is | ||
| # operator-configurable per SM, so a narrower subPath cannot be | ||
| # pinned in a shared DaemonSet spec (ADR 0003). | ||
| - name: host-root | ||
| mountPath: /host |
Comment on lines
+65
to
+108
| - name: agent | ||
| # Pin a released tag — never :latest in production (KSV-0013). | ||
| image: ghcr.io/finos/5-spot-kata-config-agent:v0.1.0 | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| - name: RUST_LOG | ||
| value: "info" | ||
| - name: RUST_LOG_FORMAT | ||
| value: "json" | ||
| - name: NODE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: spec.nodeName | ||
| - name: HOST_ROOT | ||
| value: "/host" | ||
| securityContext: | ||
| # privileged is required for setns into host mount/PID namespaces | ||
| # (the `nsenter` k0s-service restart, ADR 0003). With privileged, | ||
| # allowPrivilegeEscalation must be true; the root filesystem stays | ||
| # read-only and seccomp stays RuntimeDefault to keep the escalation | ||
| # as narrow as the feature allows. | ||
| privileged: true | ||
| runAsUser: 0 | ||
| runAsGroup: 0 | ||
| # nosemgrep: yaml.kubernetes.security.run-as-non-root-unsafe-value.run-as-non-root-unsafe-value | ||
| runAsNonRoot: false | ||
| allowPrivilegeEscalation: true | ||
| readOnlyRootFilesystem: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| resources: | ||
| limits: | ||
| cpu: 50m | ||
| memory: 64Mi | ||
| requests: | ||
| cpu: 10m | ||
| memory: 16Mi | ||
| volumeMounts: | ||
| # Host root mounted writable so the agent can write the configurable | ||
| # destPath (default /etc/k0s/container.d/). The dest path is | ||
| # operator-configurable per SM, so a narrower subPath cannot be | ||
| # pinned in a shared DaemonSet spec (ADR 0003). | ||
| - name: host-root | ||
| mountPath: /host |
prabhjotbawa
approved these changes
Jun 10, 2026
Closes: #77 Signed-off-by: Erick Bourgeois <erick@jeb.ca>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Initial phase 1-3 of a per-node Kata config delivery