Add the ssher
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
13107aa72a
commit
d5fbef5786
|
@ -0,0 +1,49 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
deployment.kubernetes.io/revision: "2"
|
||||
labels:
|
||||
app: debian
|
||||
name: debian
|
||||
namespace: ssher
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: debian
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: debian
|
||||
spec:
|
||||
containers:
|
||||
- command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- apt update && apt install -y openssh-server zsh && useradd -s /usr/bin/zsh
|
||||
martyn && mkdir /run/sshd && chmod 755 /run/sshd && /usr/sbin/sshd -D
|
||||
image: debian:latest
|
||||
imagePullPolicy: Always
|
||||
name: debian
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /home
|
||||
name: home
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: home
|
||||
persistentVolumeClaim:
|
||||
claimName: ssh-data
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
app: ssher
|
||||
name: ssh-data
|
||||
namespace: ssher
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 40Gi
|
||||
storageClassName: longhorn-fast
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/hostname: ssh.martyn.berlin
|
||||
labels:
|
||||
app: debian
|
||||
name: debian
|
||||
namespace: ssher
|
||||
spec:
|
||||
allocateLoadBalancerNodePorts: true
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- port: 22
|
||||
selector:
|
||||
app: debian
|
||||
type: LoadBalancer
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: ssher
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: ssher
|
||||
server: https://kubernetes.default.svc
|
||||
project: apps
|
||||
source:
|
||||
path: apps-kustomized/ssher
|
||||
repoURL: https://git.martyn.berlin/martyn/infra4talos
|
||||
targetRevision: HEAD
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
Loading…
Reference in New Issue