Created
September 9, 2020 14:43
-
-
Save carlessanagustin/231301a10c1c3775faeba34ffb8db5a8 to your computer and use it in GitHub Desktop.
Simple Centos Deployment for Kubernetes
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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: centos-dp | |
labels: | |
app: centos | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: centos | |
template: | |
metadata: | |
labels: | |
app: centos | |
spec: | |
containers: | |
- name: centos | |
image: centos:latest | |
command: ["sleep", "1800"] | |
resources: | |
limits: | |
cpu: 100m | |
memory: 128Mi | |
restartPolicy: Always | |
terminationGracePeriodSeconds: 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment