mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-29 17:42:47 +00:00
45 lines
1005 B
YAML
45 lines
1005 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: test
|
|
namespace: default
|
|
spec:
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
key: node-role.kubernetes.io/control-plane
|
|
# nodeSelector:
|
|
# kubernetes.io/hostname: kube-11
|
|
containers:
|
|
- name: alpine
|
|
image: alpine
|
|
command: ["sleep","6000"]
|
|
volumeMounts:
|
|
- name: pvc
|
|
mountPath: /mnt
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
runAsNonRoot: true
|
|
terminationGracePeriodSeconds: 1
|
|
securityContext:
|
|
fsGroup: 65534
|
|
runAsGroup: 65534
|
|
runAsUser: 65534
|
|
volumes:
|
|
- name: pvc
|
|
ephemeral:
|
|
volumeClaimTemplate:
|
|
metadata:
|
|
labels:
|
|
type: pvc-volume
|
|
spec:
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
storageClassName: proxmox
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|