Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created July 8, 2020 21:38
Show Gist options
  • Save rafaeltuelho/eadf292578b1dd337d44024f1c5b2b0d to your computer and use it in GitHub Desktop.
Save rafaeltuelho/eadf292578b1dd337d44024f1c5b2b0d to your computer and use it in GitHub Desktop.
kind: Pod
apiVersion: v1
metadata:
name: pod-debug
labels:
app: debug
deploymentconfig: debug
spec:
restartPolicy: Always
serviceAccountName: default
imagePullSecrets:
>>> CHANGE HERE: get from the original failing pod you want to debug <<<<
- name: default-dockercfg-j6mcx
>>> CHANGE HERE <<<<
priority: 0
schedulerName: default-scheduler
enableServiceLinks: true
terminationGracePeriodSeconds: 30
securityContext:
seLinuxOptions:
level: 's0:c25,c10'
fsGroup: 1000620000
containers:
- resources:
limits:
cpu: 500m
memory: 1536Mi
requests:
cpu: 50m
memory: 256Mi
terminationMessagePath: /dev/termination-log
name: pod-debug
env:
- name: JAVA_OPTIONS
value: >-
-Dkafka.cluster.url=my-cluster-kafka-brokers:9092
- name: NEXUS_REPO
value: 'http://nexus:8081'
securityContext:
capabilities:
drop:
- KILL
- MKNOD
- SETGID
- SETUID
runAsUser: 1000620000
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
- containerPort: 8778
protocol: TCP
imagePullPolicy: Always
terminationMessagePolicy: File
image: >-
>>> CHANGE HERE: get from the original failing pod you want to debug <<<<
image-registry.openshift-image-registry.svc:5000/cat-fuse-integration/cat-fuse-integration-service
>>> CHANGE HERE <<<<
command: ['sh', '-c', 'echo The app is running! && sleep 3600']
volumeMounts:
- name: mvn-settings
mountPath: /home/jboss/.m2/
volumes:
- name: mvn-settings
configMap:
name: custom-mvn-settings
serviceAccount: default
dnsPolicy: ClusterFirst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment