Last active
April 12, 2024 07:44
-
-
Save obervinov/607082aff05de681b2f2bfc18212380d to your computer and use it in GitHub Desktop.
Deployment with python tools for debugging or running one-off jobs
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: python | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: python | |
template: | |
metadata: | |
labels: | |
app: python | |
spec: | |
containers: | |
- name: python | |
image: ghcr.io/obervinov/tools/python:1.0.0 | |
command: | |
- sleep | |
- '604800' | |
resources: | |
limits: | |
memory: 1024Mi | |
requests: | |
memory: 256Mi | |
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