Last active
March 5, 2020 00:13
-
-
Save loopDelicious/b37081e906e73023c50003704338d6f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# The main bit: the Deployment of our container. | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ddclient | |
spec: | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
progressDeadlineSeconds: 600 | |
selector: | |
matchLabels: | |
app: ddclient | |
# The deployment "template" contains everything required | |
# to get our container running reliably | |
template: | |
metadata: | |
labels: | |
app: ddclient | |
spec: | |
terminationGracePeriodSeconds: 30 | |
# Let's use our Secret here: | |
volumes: | |
- name: ddclient-config | |
configMap: | |
# Provide the name of the Secret containing the files you want | |
# to add to the container | |
name: ddclient-secret | |
# We'll include one container here: | |
containers: | |
- name: ddclient | |
image: linuxserver/ddclient | |
imagePullPolicy: IfNotPresent | |
# And using our ConfigMap for data! | |
volumeMounts: | |
- mountPath: /config | |
name: ddclient-config | |
# We'll also set our resource requirements: | |
resources: | |
# How much we expect to use | |
requests: | |
cpu: 10m | |
memory: 64Mi | |
# And how much is too much (this is important!) | |
limits: | |
cpu: 500m | |
memory: 256Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment