Skip to content

Commit

Permalink
tweak the node-agent loadtest chart (#42547)
Browse files Browse the repository at this point in the history
  • Loading branch information
espadolini authored Jun 11, 2024
1 parent 696d4d9 commit 07d6658
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions assets/loadtest/helm/node-agent/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ data:
teleport:
log:
severity: DEBUG
storage:
type: dir
format:
output: json
{{- if .Values.authServer }}
auth_server: {{ .Values.authServer }}
{{- end }}
Expand All @@ -24,20 +24,15 @@ data:
enabled: false
ssh_service:
enabled: true
{{ if .Values.labels }}
labels: {{- toYaml .Values.labels | nindent 8 }}
{{- end }}
commands:
- name: fullname
command: ['sh', '-c', 'echo "$HOSTNAME-$REPLICA"']
# listen_addr set at runtime to avoid conflicts in the same pod
# listen_addr: 0.0.0.0:3022
labels:{{- if .Values.labels }}{{- toYaml .Values.labels | nindent 8 }}{{- end }}
entrypoint.sh: |2
#!/busybox/sh
set -euxo pipefail
sed -i 's!/sbin/nologin!/busybox/sh!' /etc/passwd
cp /etc/teleport-config/teleport.yaml /etc/teleport.yaml
nodename="$( hostname )-$REPLICA"
echo " NODENAME: ${nodename}" >> /etc/teleport.yaml
echo " POD: $( hostname )" >> /etc/teleport.yaml
echo " listen_addr: '0.0.0.0:30$REPLICA'" >> /etc/teleport.yaml
HOST="$(hostname)-$REPLICA"
cat /etc/teleport.yaml
exec dumb-init --rewrite 15:3 -- teleport start -c /etc/teleport.yaml --nodename $HOST
exec dumb-init --rewrite 15:3 -- teleport start --nodename "${nodename}"

0 comments on commit 07d6658

Please sign in to comment.