k3s-configs/apps/dev-container/deployment.yaml

33 lines
763 B
YAML
Executable File

apiVersion: apps/v1
kind: Deployment
metadata:
name: dev-container
namespace: dev
labels:
app: dev-container
spec:
replicas: 1
selector:
matchLabels:
app: dev-container
template:
metadata:
labels:
app: dev-container
spec:
securityContext:
fsGroup: 1000
containers:
- name: dev-container
image: git.namesny.com/mathis/dev-container:2024-04-25@sha256:54e0a338fec52e4f124bb8b9030892bbb85b61717f237107377a2ad1d1db567c
imagePullPolicy: Always
ports:
- containerPort: 7681
volumeMounts:
- name: projects
mountPath: /home/dev/projects
volumes:
- name: projects
persistentVolumeClaim:
claimName: dev-projects