Tobias Brunner
1730b7ee37
All checks were successful
continuous-integration/drone/push Build is passing
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: goldilocks-controller
|
|
labels:
|
|
app.kubernetes.io/name: goldilocks
|
|
app.kubernetes.io/component: controller
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: goldilocks
|
|
app.kubernetes.io/component: controller
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: goldilocks
|
|
app.kubernetes.io/component: controller
|
|
spec:
|
|
serviceAccountName: goldilocks-controller
|
|
containers:
|
|
- name: goldilocks
|
|
image: "quay.io/fairwinds/goldilocks:master"
|
|
imagePullPolicy: Always
|
|
command:
|
|
- /goldilocks
|
|
- controller
|
|
securityContext:
|
|
readOnlyRootFilesystem: true
|
|
allowPrivilegeEscalation: false
|
|
runAsNonRoot: true
|
|
runAsUser: 10324
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
resources:
|
|
requests:
|
|
cpu: 25m
|
|
memory: 32Mi
|
|
limits:
|
|
cpu: 25m
|
|
memory: 32Mi
|