a random temp code
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
Helps in images upload. | |
Just add image in comments. |
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: ConfigMap | |
metadata: | |
name: json-configmap | |
namespace: default | |
data: | |
config_develop.json: | | |
{ | |
"current_env" : "gcp-development-minikube", | |
"Directory_Type" : "folder", |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: python-script | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: python-script | |
template: |
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
FROM python:3.8.3 | |
WORKDIR /application | |
# Install and upgrade pip | |
RUN pip install --upgrade pip | |
# Collect pip requirements | |
COPY requirements.txt . | |
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
A sample test file |
sudo -s
container ip
docker inspect --format '{{.NetworkSettings.IPAddress}}'
OlderNewer