-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:kubermatic/community-components
- Loading branch information
Showing
9 changed files
with
125 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: ssh-debug-k1-admin | ||
name: ssh-debug-k1-admin | ||
spec: | ||
strategy: | ||
type: Recreate | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: ssh-debug-k1-admin | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: ssh-debug-k1-admin | ||
spec: | ||
terminationGracePeriodSeconds: 0 | ||
containers: | ||
- args: | ||
- /bin/bash | ||
- -c | ||
- | | ||
mkdir -p /root/.ssh | ||
ls -lah /tmp/.ssh | ||
cp /tmp/.ssh/* /root/.ssh/ | ||
chmod 0600 /root/.ssh/* | ||
ls -lah /root/.ssh | ||
service ssh restart | ||
#Optional: your ngrok command to join | ||
#ngrok config add-authtoken xxxx-YOUR-TOKEN-xxxx | ||
#ngrok tunnel --log stdout --label edge=xxxx-your-edge-label 22 | ||
image: quay.io/kubermatic-labs/kubeone-tooling:1.7.2-2024-02-14 | ||
name: k1-admin | ||
stdin: true | ||
stdinOnce: true | ||
tty: true | ||
readinessProbe: | ||
tcpSocket: | ||
port: 22 | ||
securityContext: | ||
runAsNonRoot: false | ||
runAsUser: 0 | ||
volumeMounts: | ||
- mountPath: /tmp/.ssh | ||
name: ssh-files | ||
tolerations: | ||
- effect: NoExecute | ||
key: node.kubernetes.io/not-ready | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
- effect: NoExecute | ||
key: node.kubernetes.io/unreachable | ||
operator: Exists | ||
tolerationSeconds: 300 | ||
volumes: | ||
- name: ssh-files | ||
secret: | ||
secretName: ssh-files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ssh-files | ||
stringData: | ||
# id_rsa: | | ||
#TODO-PRIVATE-SSH-KEY | ||
# id_rsa.pub: | | ||
#TODO--PUBLIC-SSH-KEY | ||
authorized_keys: |- | ||
# add your ssh public-key |
This file was deleted.
Oops, something went wrong.