-
Notifications
You must be signed in to change notification settings - Fork 16
feat(server): support openshift nonroot-v2 SCC by default #583
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
Merged
oleksandr-codefresh
merged 11 commits into
main
from
osaulyak/server-openshift-scc-support
May 18, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
68dae07
VIP
oleksandr-codefresh 279d641
server: added default securityContext to comply openshift restricted-…
oleksandr-codefresh 435d9c6
mssql: Ensure podSecurityContext enforces non-root user execution
oleksandr-codefresh f82ed56
Add tests for mssql service account creation and name resolution
oleksandr-codefresh 18c6897
restore previous values
oleksandr-codefresh 8be7c8b
server docs: added strict security context section and openshift inst…
oleksandr-codefresh c99291f
fix(docs): update code block syntax highlighting in README.md
oleksandr-codefresh c1bd807
fix title levels
oleksandr-codefresh 34830b4
Merge branch 'main' into osaulyak/server-openshift-scc-support
oleksandr-codefresh 7c1cb02
Merge branch 'main' into osaulyak/server-openshift-scc-support
oleksandr-codefresh 16a5ae5
Server values: removed runAsNonRoot: true
oleksandr-codefresh 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| apiVersion: apps/v1 | ||
| kind: StatefulSet | ||
| metadata: | ||
| name: octopus-deploy | ||
| labels: | ||
| app.kubernetes.io/name: octopus-deploy | ||
| helm.sh/chart: octopusdeploy-helm-1.11.1 | ||
| app.kubernetes.io/instance: octopus-deploy | ||
| app.kubernetes.io/managed-by: Helm | ||
| spec: | ||
| selector: | ||
| matchLabels: | ||
| app.kubernetes.io/name: octopus-deploy | ||
| helm.sh/chart: octopusdeploy-helm-1.11.1 | ||
| app.kubernetes.io/instance: octopus-deploy | ||
| app.kubernetes.io/managed-by: Helm | ||
| app.kubernetes.io/component: octopus-server | ||
| serviceName: octopus-deploy | ||
| replicas: 1 | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/name: octopus-deploy | ||
| helm.sh/chart: octopusdeploy-helm-1.11.1 | ||
| app.kubernetes.io/instance: octopus-deploy | ||
| app.kubernetes.io/managed-by: Helm | ||
| app.kubernetes.io/component: octopus-server | ||
| spec: | ||
| serviceAccountName: default | ||
| containers: | ||
| - name: octopus | ||
| image: "docker.packages.octopushq.com/octopusdeploy/octopusdeploy:2026.2.4992-noamgal-yos-32-investigate-octopus-deploy-helm-chart-compatibility-with-linux" | ||
| securityContext: | ||
| env: | ||
|
|
||
| - name: ACCEPT_EULA | ||
| value: "Y" | ||
| - name: OCTOPUS_SERVER_NODE_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.name | ||
| - name: DB_CONNECTION_STRING | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: octopus-deploy-connectionstring | ||
| key: secret | ||
| - name: ADMIN_USERNAME | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: octopus-deploy-adminusername | ||
| key: secret | ||
| - name: ADMIN_PASSWORD | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: octopus-deploy-adminpassword | ||
| key: secret | ||
| - name: ADMIN_EMAIL | ||
| value: | ||
| - name: TASK_CAP | ||
| value: !!str | ||
| - name: OCTOPUS_SERVER_BASE64_LICENSE | ||
| # Your license key goes here. When using more than one node, a HA license is required. | ||
| # Without a HA license, the stateful set can have a replica count of 1. | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: octopus-deploy-licensekey | ||
| key: secret | ||
| - name: MASTER_KEY | ||
| valueFrom: | ||
| secretKeyRef: | ||
| name: octopus-deploy-masterkey | ||
| key: secret | ||
| - name: DISABLE_DIND | ||
| value: !!str "Y" | ||
| - name: OCTOPUS_INSTALLED_VIA_HELM | ||
| value: "true" | ||
| - name: OCTOPUS_GRPC_SERVICES_PORT | ||
| value: "8443" | ||
| ports: | ||
| - containerPort: 8080 | ||
| name: web | ||
| - containerPort: 10943 | ||
| name: tentacle | ||
| - containerPort: 8443 | ||
| name: grpcs | ||
| volumeMounts: | ||
| - name: package-repository-volume | ||
| mountPath: /repository | ||
| - name: artifacts-volume | ||
| mountPath: /artifacts | ||
| - name: task-log-volume | ||
| mountPath: /taskLogs | ||
| - name: server-log-volume | ||
| mountPath: /home/octopus/.octopus/OctopusServer/Server/Logs | ||
| - name: audit-log-volume | ||
| mountPath: /eventExports | ||
| readinessProbe: | ||
| exec: | ||
| command: | ||
| - /bin/bash | ||
| - -c | ||
| - URL=http://localhost:8080; response=$(/usr/bin/curl -k $URL/api/serverstatus/hosted/internal --write-out %{http_code} --silent --output /dev/null); /usr/bin/test "$response" -ge 200 && /usr/bin/test "$response" -le 299 || /usr/bin/test | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 60 | ||
| livenessProbe: | ||
| exec: | ||
| command: | ||
| - /bin/bash | ||
| - -c | ||
| - URL=http://localhost:8080; response=$(/usr/bin/curl -k $URL/api/octopusservernodes/ping --write-out %{http_code} --silent --output /dev/null); /usr/bin/test "$response" -ge 200 && /usr/bin/test "$response" -le 299 || /usr/bin/test "$response" -eq 418 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 10 | ||
| startupProbe: | ||
| exec: | ||
| command: | ||
| - /bin/bash | ||
| - -c | ||
| - URL=http://localhost:8080; response=$(/usr/bin/curl -k $URL/api/octopusservernodes/ping --write-out %{http_code} --silent --output /dev/null); /usr/bin/test "$response" -ge 200 && /usr/bin/test "$response" -le 299 || /usr/bin/test "$response" -eq 418 | ||
| failureThreshold: 30 | ||
| periodSeconds: 60 | ||
| terminationGracePeriodSeconds: 10 | ||
| volumes: | ||
| - name: package-repository-volume | ||
| persistentVolumeClaim: | ||
| claimName: package-repository-claim | ||
| - name: artifacts-volume | ||
| persistentVolumeClaim: | ||
| claimName: artifacts-claim | ||
| - name: task-log-volume | ||
| persistentVolumeClaim: | ||
| claimName: task-log-claim | ||
| - name: audit-log-volume | ||
| persistentVolumeClaim: | ||
| claimName: audit-log-claim | ||
| volumeClaimTemplates: | ||
| - metadata: | ||
| name: server-log-volume | ||
| spec: | ||
| accessModes: [ "ReadWriteOnce" ] | ||
| resources: | ||
| requests: | ||
| storage: 200Mi |
Oops, something went wrong.
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.