Skip to content

Commit 7c51a3a

Browse files
committed
Feat(#199) Finished k8s 1.25 migration for minikube
1 parent 23db884 commit 7c51a3a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

wrongsecrets-balancer/src/kubernetes.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const createNameSpaceForTeam = async (team) => {
3535
labels: {
3636
name: `t-${team}`,
3737
'pod-security.kubernetes.io/audit': 'restricted',
38-
// 'pod-security.kubernetes.io/enforce': 'baseline',
38+
'pod-security.kubernetes.io/enforce': 'baseline',
3939
},
4040
};
4141
k8sCoreApi.createNamespace(namedNameSpace).catch((error) => {
@@ -128,7 +128,6 @@ const createK8sDeploymentForTeam = async ({ team, passcodeHash }) => {
128128
name: 'wrongsecrets',
129129
image: `jeroenwillemsen/wrongsecrets:${wrongSecretsContainterTag}`,
130130
imagePullPolicy: get('wrongsecrets.imagePullPolicy'),
131-
// resources: get('wrongsecrets.resources'),
132131
securityContext: {
133132
allowPrivilegeEscalation: false,
134133
readOnlyRootFilesystem: true,
@@ -1097,13 +1096,10 @@ const createDesktopDeploymentForTeam = async ({ team, passcodeHash }) => {
10971096
'ephemeral-storage': '8Gi',
10981097
},
10991098
},
1100-
// // resources: get('virtualdesktop.resources'),
11011099
securityContext: {
1102-
allowPrivilegeEscalation: true,
1100+
allowPrivilegeEscalation: true, //S6 will capture any weird things
11031101
readOnlyRootFilesystem: false,
11041102
runAsNonRoot: false,
1105-
// capabilities: { drop: ['ALL'], add:['CAP_SETGID','CAP_SETUID','CAP_CHOWN'] },
1106-
seccompProfile: { type: 'RuntimeDefault' },
11071103
},
11081104
env: [
11091105
{
@@ -1151,7 +1147,7 @@ const createDesktopDeploymentForTeam = async ({ team, passcodeHash }) => {
11511147
{
11521148
emptyDir: {
11531149
medium: 'Memory',
1154-
sizeLimit: '200Mi',
1150+
sizeLimit: '160Mi',
11551151
},
11561152
name: 'config-fs',
11571153
},

0 commit comments

Comments
 (0)