Skip to content

Commit 57dbb77

Browse files
authored
chore: updated cloud tty image reference and user (#823)
* chore: updated cloud tty image reference and user * chore: updated cloud tty image reference and user for admin * fix: added ttyd writable argument * chore: update to new tty image and remove overrides * chore: update to tty image with bash entrypoint * chore: adopt latest optimizations to tty image * feat: added security context for improved policy compliance
1 parent 659e08f commit 57dbb77

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

src/ttyManifests/adminTtyManifests/tty_02_Pod.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ metadata:
99
spec:
1010
serviceAccountName: tty-$SUB
1111
securityContext:
12-
runAsUser: 1000
13-
runAsGroup: 1000
14-
volumes:
15-
- name: kconfig
16-
configMap:
17-
name: kconfig-team-$TARGET_TEAM
12+
runAsNonRoot: true
13+
seccompProfile:
14+
type: RuntimeDefault
15+
runAsUser: 1001
16+
runAsGroup: 1001
17+
fsGroup: 1001
1818
containers:
19-
- image: linode/apl-tty:1.2.1
19+
- image: linode/apl-tty:1.2.5
2020
name: po
2121
resources:
2222
requests:
@@ -25,12 +25,12 @@ spec:
2525
limits:
2626
memory: '256Mi'
2727
cpu: '500m'
28-
volumeMounts:
29-
- name: kconfig
30-
mountPath: /etc/kconfig
31-
command:
32-
- bash
33-
- -c
34-
- bash /etc/kconfig/kconfig.sh && ttyd -w /home/user -p 8080 tmux new -A
28+
env:
29+
- name: NAMESPACE
30+
value: team-$TARGET_TEAM
31+
securityContext:
32+
allowPrivilegeEscalation: false
33+
capabilities:
34+
drop:
35+
- ALL
3536
---
36-

src/ttyManifests/tty_02_Pod.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ metadata:
99
spec:
1010
serviceAccountName: tty-$SUB
1111
securityContext:
12-
runAsUser: 1000
13-
runAsGroup: 1000
14-
volumes:
15-
- name: kconfig
16-
configMap:
17-
name: kconfig-team-$TARGET_TEAM
12+
runAsNonRoot: true
13+
seccompProfile:
14+
type: RuntimeDefault
15+
runAsUser: 1001
16+
runAsGroup: 1001
17+
fsGroup: 1001
1818
containers:
19-
- image: linode/apl-tty:1.2.1
19+
- image: linode/apl-tty:1.2.5
2020
name: po
2121
resources:
2222
requests:
@@ -25,12 +25,12 @@ spec:
2525
limits:
2626
memory: '256Mi'
2727
cpu: '500m'
28-
volumeMounts:
29-
- name: kconfig
30-
mountPath: /etc/kconfig
31-
command:
32-
- bash
33-
- -c
34-
- bash /etc/kconfig/kconfig.sh && ttyd -w /home/user -p 8080 tmux new -A
28+
env:
29+
- name: NAMESPACE
30+
value: team-$TARGET_TEAM
31+
securityContext:
32+
allowPrivilegeEscalation: false
33+
capabilities:
34+
drop:
35+
- ALL
3536
---
36-

0 commit comments

Comments
 (0)