infra4talos/apps-kustomized/ssher/deploy.yaml

50 lines
1.2 KiB
YAML
Raw Normal View History

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