mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
sshct
This commit is contained in:
parent
38d99ba6d7
commit
8ddeba5216
3 changed files with 71 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
19
state/gullfaxi/apps/sshct/application.yaml
Normal file
19
state/gullfaxi/apps/sshct/application.yaml
Normal 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/
|
||||
46
state/gullfaxi/apps/sshct/manifests/sshct.yaml
Normal file
46
state/gullfaxi/apps/sshct/manifests/sshct.yaml
Normal 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
|
||||
Loading…
Reference in a new issue