Skip to content

Instantly share code, notes, and snippets.

@sudermanjr
Created January 18, 2019 17:19
Show Gist options
  • Save sudermanjr/cf572fa3de4875e1613fa0c3299a2c37 to your computer and use it in GitHub Desktop.
Save sudermanjr/cf572fa3de4875e1613fa0c3299a2c37 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: utilities
labels:
app: utilities
spec:
replicas: 1
selector:
matchLabels:
app: utilities
template:
metadata:
labels:
app: utilities
spec:
containers:
- name: utilities
image: quay.io/sudermanjr/utilities:latest
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 10324
capabilities:
drop:
- ALL
resources:
requests:
cpu: 30m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment