-
-
Save mndambuki/34671ac5d6a1e8f994c987e9c551c3f6 to your computer and use it in GitHub Desktop.
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
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