Deploy a sample application
DO NOT deploy the following sample application in a production environment. This application is used for demo purposes and contains a number of vulnerabilities. It is highly recommended that you promptly uninstall the application after you've completed the tutorial.
Snyk provides a demo application called goof which may be used for this tutorial. You may deploy any application you desire. To deploy the goof app, clone the repository to your local environment with the following command:
1
git clone https://github.com/snyk-partners/k8s-goof.git
Copied!
Next, change directory or cd to where you cloned as follows:
1
cd k8s-goof/
Copied!
This will bring us to where we have conveniently placed some Kubernetes manifests to help with your deployments. Run the following commands:
1
kubectl create namespace goof && \
2
kubectl apply -f ./manifests -n goof
Copied!
It may take a few minutes for your application to be ready, but you can check the status with the following command:
1
kubectl get pods -n goof
Copied!
When these display that they are in a ready state 1/1 then you should be able to pull the external IP and past that into a browser window to access the application. You can get the external IP for the application with the following command:
1
kubectl get svc -n goof
Copied!
Export as PDF
Copy link
Edit on GitHub