Skip to content

Instantly share code, notes, and snippets.

@Pamir
Last active February 17, 2023 16:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Pamir/79741ea098dcf473f61bcf45c3ff9b43 to your computer and use it in GitHub Desktop.
Save Pamir/79741ea098dcf473f61bcf45c3ff9b43 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
labels:
run: jvm-vulnerable-lab
name: jvm-vulnerable-lab
internalVersion: 0.0.1
name: jvm-vulnerable-lab
spec:
containers:
- image: pamir/jvm-vulnerable-lab:0.0.1
imagePullPolicy: IfNotPresent
name: jvm-vulnerable-lab
resources:
requests:
memory: "1024Mi"
cpu: "500m"
limits:
memory: "1024Mi"
cpu: "500m"
ports:
- containerPort: 8080
name: http
protocol: TCP
volumeMounts:
- mountPath: "/mnt/azure"
name: volume
lifecycle:
preStop:
exec:
command:
- sh
- -c
- "jmap -dump:live,format=b,file=/mnt/azure/$(hostname).hprof 1"
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
terminationGracePeriodSeconds : 600
volumes:
- name: volume
persistentVolumeClaim:
claimName: azure-managed-disk
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: azure-managed-disk
spec:
accessModes:
- ReadWriteMany
storageClassName: azurefile
resources:
requests:
storage: 5Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment