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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: bash-pod | |
namespace: | |
spec: | |
containers: | |
- name: bash-container | |
image: ubuntu:latest | |
command: ["/bin/bash", "-c", "while true; do sleep 30; done;"] |
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
# Starting minikube with 8Gb of memory and 3 CPUs | |
minikube --memory 8192 --cpus 3 start | |
# Creating separate Namespace for Spark driver and executor pods | |
kubectl create namespace spark | |
# Creating ServiceAccount and ClusterRoleBinding for Spark | |
kubectl create serviceaccount spark-serviceaccount --namespace spark | |
kubectl create clusterrolebinding spark-rolebinding --clusterrole=edit --serviceaccount=spark:spark-serviceaccount --namespace=spark |
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
docker exec -it <container> /bin/bash | |
# Run the following commands inside the container | |
apt update | |
apt install -y gdb | |
apt install -y net-tools | |
pip install debugpy | |
# Find the PID for the Flask process. Always use the first that appear on the list | |
ps -ef |