Skip to content

Commit 89c8cab

Browse files
author
Marcel Zapf
committed
update
1 parent 384884b commit 89c8cab

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

chart/templates/cm-bashrc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ data:
1616
1717
# Prompt
1818
PS1='\u@\h:\w\$ '
19+
20+
# activate venv
21+
source ~/venv/bin/activate

chart/templates/cm-entrypoint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ data:
6969
echo "WARNING: Could not check port usage (no ss/netstat found)."
7070
fi
7171
72+
VENV_DIR="/home/dev/venv"
73+
if [ ! -d "$VENV_DIR" ]; then
74+
echo "Creating virtual environment in $VENV_DIR"
75+
python3 -m venv "$VENV_DIR"
76+
fi
77+
source "$VENV_DIR/bin/activate"
78+
7279
echo "Starting SSH service on port $PORT..."
7380
exec /usr/sbin/sshd -D -f /etc/ssh/sshd_config \
7481
-o Port=$PORT \

chart/templates/svc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: {{ .Release.Name }}-service
6+
labels:
7+
{{- with .Values.service.labels }}
8+
{{ toYaml .}}
9+
{{- end }}
610
spec:
711
type: {{ .Values.service.type }}
812
ports:

chart/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
replicaCount: 1
22

33
image:
4-
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:b74d9fc455717bee5b6330ef892bc621c0cfccf3c2b95af5ea407624ed4cce95
4+
source: ghcr.io/syntax3rror404/k8s-devmachine@sha256:62d616cfddddd6b81272c12f751215c56c15ffefa355acb11cf8f1e4c48d63dc
55
pullPolicy: IfNotPresent
66

77
service:
88
type: LoadBalancer
99
port: 2222
1010
targetPort: 2222
11+
labels:
12+
ciliuml2: pool
13+
1114

1215
persistence:
1316
enabled: true

0 commit comments

Comments
 (0)