42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: opensandbox-identity
|
|
namespace: opensandbox
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: opensandbox-identity
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: opensandbox-identity
|
|
spec:
|
|
serviceAccountName: opensandbox-identity
|
|
containers:
|
|
- name: controller
|
|
image: zot.ad.ddupan.top/panxiao81/gitea-dynamic-runner-controller@sha256:dfbfaf2a7aa5951d1dc4e7f941a8cd05ceb4a860ac1ab23eb8be234861edcb55
|
|
imagePullPolicy: IfNotPresent
|
|
command: [/venv/bin/gitea-dynamic-runner-opensandbox-identity]
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 32Mi
|
|
limits:
|
|
cpu: 100m
|
|
memory: 96Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: [ALL]
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
runAsGroup: 65532
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|