Last active
December 6, 2024 11:24
-
-
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
This file contains hidden or 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: tools | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: tools | |
template: | |
metadata: | |
labels: | |
app: tools | |
spec: | |
containers: | |
- name: tools | |
image: ghcr.io/obervinov/images/debug:latest | |
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