Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Created September 9, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlessanagustin/231301a10c1c3775faeba34ffb8db5a8 to your computer and use it in GitHub Desktop.
Save carlessanagustin/231301a10c1c3775faeba34ffb8db5a8 to your computer and use it in GitHub Desktop.
Simple Centos Deployment for Kubernetes
---
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