This commit is contained in:
Andrei Kartashov 2023-09-04 22:57:56 +07:00
parent 38d99ba6d7
commit 8ddeba5216
3 changed files with 71 additions and 0 deletions

View file

@ -32,6 +32,8 @@ Applications & Projects
+------------------------------+----------------------------------------------------------------+-------------------------+
| Oauth2-proxy_ | `Oauth2 Proxy`_ | |oauth2-proxy_status| |
+------------------------------+----------------------------------------------------------------+-------------------------+
| SSHCT_ | `Personal container with ssh`_ | |sshct_status| |
+------------------------------+----------------------------------------------------------------+-------------------------+
| Websites_ | * https://a.ioot.xyz | |websites_status| |
| | * https://router.ioot.xyz | |
+------------------------------+----------------------------------------------------------------+-------------------------+
@ -72,6 +74,10 @@ Applications & Projects
.. _Oauth2 Proxy: https://github.com/oauth2-proxy/oauth2-proxy
.. |oauth2-proxy_status| image:: https://argocd.ioot.xyz/api/badge?name=oauth2-proxy&revision=true
.. _SSHCT: https://argocd.ioot.xyz/applications/argocd/sshct
.. _Personal container with ssh: https://github.com/amkartashov/dockerfiles/tree/master/sshct
.. |sshct_status| image:: https://argocd.ioot.xyz/api/badge?name=sshct&revision=true
.. _Websites: https://argocd.ioot.xyz/applications/argocd/websites
.. |websites_status| image:: https://argocd.ioot.xyz/api/badge?name=websites&revision=true

View file

@ -0,0 +1,19 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: sshct
spec:
destination:
server: https://kubernetes.default.svc
namespace: sshct
project: apps
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
source:
repoURL: git@github.com:amkartashov/gf-k8s.git
targetRevision: main
path: state/gullfaxi/apps/sshct/manifests/

View file

@ -0,0 +1,46 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sshct
labels:
app: sshct
spec:
replicas: 1
selector:
matchLabels:
app: sshct
template:
metadata:
labels:
app: sshct
spec:
hostNetwork: true
volumes:
- name: home
hostPath:
path: /home
type: DirectoryOrCreate
- name: dockersock
hostPath:
path: /var/run/docker.sock
type: Socket
containers:
- name: sshct
securityContext:
privileged: true
image: ghcr.io/amkartashov/sshct:v3.8.0
imagePullPolicy: IfNotPresent
env:
- name: CT_SSH_PORT
value: "30810"
#- name: CTUSERPWD
# valueFrom:
# secretKeyRef:
# name: sshct
# key: password
volumeMounts:
- mountPath: /home
name: home
- mountPath: /var/run/docker.sock
name: dockersock