Created
December 21, 2019 04:08
-
-
Save markjacksonfishing/9ffbd919b870b417a80a28bdd745e40c 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: Service | |
metadata: | |
name: kube-struts-svc | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 8080 | |
selector: | |
app: kube-struts-pod | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kube-struts-pod | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: kube-struts-pod | |
spec: | |
containers: | |
- name: kube-struts-pod | |
image: dieterreuter/struts | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /var/run/docker.sock | |
name: docker-sock | |
readOnly: false | |
restartPolicy: Always | |
volumes: | |
- name: docker-sock | |
hostPath: | |
path: /var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was me testing https://neuvector.com/container-security/hack-kubernetes-container/