This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/goldilocks/controller/deployment.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

2020-06-29 18:47:31 +00:00
---
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