Skip to content

Instantly share code, notes, and snippets.

@obervinov
Last active April 12, 2024 07:44
Show Gist options
  • Save obervinov/5d9d0c883b98eab4ececc160a5bf9ca2 to your computer and use it in GitHub Desktop.
Save obervinov/5d9d0c883b98eab4ececc160a5bf9ca2 to your computer and use it in GitHub Desktop.
Deployment feed with debug container in kubernetes: curl, tcpdump, awscli, wget, strace and etc
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tools
spec:
replicas: 1
selector:
matchLabels:
app: tools
template:
metadata:
labels:
app: tools
spec:
containers:
- name: tools
image: ghcr.io/obervinov/images/debug:1.0.5
command:
- sleep
- '604800'
resources:
limits:
cpu: '250m'
memory: 128Mi
requests:
cpu: 100m
memory: 64Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
securityContext:
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: false
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment