Skip to content

Commit

Permalink
feat: onyx cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Feb 6, 2024
1 parent 000011d commit 4828d5f
Show file tree
Hide file tree
Showing 10 changed files with 570 additions and 6 deletions.
156 changes: 156 additions & 0 deletions chart/values.entei.onyx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
serviceTree:
landscape: &landscape entei
cluster: onyx


commonExclude:
annotaions: &annotationExclude
- "*-cleanup-controller-*"
labels: &labelExclude
- "*-cleanup-controller-*"
- "*-silicon-*"

globalExcludedNamespace: &globalExcludedNamespace
- kube-system
- pichu
- pikachu
- raichu

kyverno-policies:
podSecurityStandard: baseline
podSecuritySeverity: medium
validationFailureAction: Audit
policyExclude:
disallow-capabilities:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-namespaces:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-path:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
disallow-host-ports:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-process:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-privileged-containers:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-proc-mount:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-selinux:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-apparmor-profiles:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-sysctls:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-seccomp:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-privilege-escalation:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
- "*-otel*"
- "*ingress-nginx-controller*"
- "*-target-allocator-targetallocator-*"
require-run-as-non-root-user:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
- "*-target-allocator-targetallocator-*"
require-run-as-nonroot:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
- "*-target-allocator-targetallocator-*"
restrict-seccomp-strict:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-volume-types:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
policies:
requireAtomiCloudAnnotations:
exclude:
names: *annotationExclude

requireAtomiCloudLabels:
exclude:
names: *labelExclude

checkLandscapeLabel:
value: *landscape
exclude:
names: *labelExclude

checkLandscapeAnnotation:
value: *landscape
exclude:
names: *annotationExclude

checkLayerLabel:
exclude:
names: *labelExclude

checkLayerAnnotation:
exclude:
names: *annotationExclude

checkPlatformLabel:
exclude:
names: *labelExclude

checkPlatformAnnotation:
exclude:
names: *annotationExclude

requireRequestLimits:
exclude:
names:
- "*-target-allocator-targetallocator-*"
134 changes: 134 additions & 0 deletions chart/values.pichu.onyx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
serviceTree:
landscape: &landscape pichu
cluster: onyx

commonExclude:
annotations: &annotationExclude
- "*-cleanup-controller-*"
labels: &labelExclude
- "*-cleanup-controller-*"
- "*-silicon-*"
- "tin-livecache*"

globalExcludedNamespace: &globalExcludedNamespace
- kube-system

kyverno-policies:
podSecurityStandard: baseline
podSecuritySeverity: medium
validationFailureAction: Audit
policyExclude:
disallow-capabilities:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-namespaces:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-path:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-container-logs-collector*"
disallow-host-ports:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-host-process:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-privileged-containers:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-proc-mount:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-selinux:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-apparmor-profiles:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-sysctls:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-seccomp:
any:
- resources:
namespaces: *globalExcludedNamespace
disallow-privilege-escalation:
any:
- resources:
namespaces: *globalExcludedNamespace
- resources:
namespaces:
- sulfoxide
names:
- "*-otel*"
require-run-as-non-root-user:
any:
- resources:
namespaces: *globalExcludedNamespace
require-run-as-nonroot:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-seccomp-strict:
any:
- resources:
namespaces: *globalExcludedNamespace
restrict-volume-types:
any:
- resources:
namespaces: *globalExcludedNamespace

policies:
requireAtomiCloudAnnotations:
exclude:
names: *annotationExclude

requireAtomiCloudLabels:
exclude:
names: *labelExclude

checkLandscapeLabel:
value: *landscape
exclude:
names: *labelExclude

checkLandscapeAnnotation:
value: *landscape
exclude:
names: *annotationExclude

checkLayerLabel:
exclude:
names: *labelExclude

checkLayerAnnotation:
exclude:
names: *annotationExclude

checkPlatformLabel:
exclude:
names: *labelExclude

checkPlatformAnnotation:
exclude:
names: *annotationExclude

requireRequestLimits:
exclude:
names:
- "*-target-allocator-targetallocator-*"
3 changes: 2 additions & 1 deletion chart/values.pichu.opal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ serviceTree:
cluster: opal

commonExclude:
annotaions: &annotationExclude
annotations: &annotationExclude
- "*-cleanup-controller-*"
labels: &labelExclude
- "*-cleanup-controller-*"
- "*-silicon-*"
- "tin-livecache*"

globalExcludedNamespace: &globalExcludedNamespace
- kube-system
Expand Down
3 changes: 2 additions & 1 deletion chart/values.pichu.ruby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ serviceTree:
cluster: ruby

commonExclude:
annotaions: &annotationExclude
annotations: &annotationExclude
- "*-cleanup-controller-*"
labels: &labelExclude
- "*-cleanup-controller-*"
- "*-silicon-*"
- "tin-livecache*"

globalExcludedNamespace: &globalExcludedNamespace
- kube-system
Expand Down
Loading

0 comments on commit 4828d5f

Please sign in to comment.