Last active
February 17, 2023 16:08
-
-
Save Pamir/79741ea098dcf473f61bcf45c3ff9b43 to your computer and use it in GitHub Desktop.
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: 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