- local https://github.com/kubernetes-sigs/kind (or just use minikube if it works for you)
- cloud https://cloud.google.com/kubernetes-engine (for PersistentVolume and Ingress, I needed to try the real deal)
- practice environment: https://github.com/arush-sal/cka-practice-environment
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
import streamlit as st | |
import time | |
col1, col2, col3 = st.columns([1,2,1]) | |
col1.markdown("# Welcome to my app") | |
uploaded_photo = col2.file_uploader("Upload a photo") | |
camera_photo = col2.camera_input("Take a photo") |
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
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 | |
# warmup NuGet package cache | |
WORKDIR /sln | |
COPY *.sln . | |
COPY projectfiles.tar . | |
RUN tar -xvf projectfiles.tar | |
RUN dotnet restore \ | |
--source https://api.nuget.org/v3/index.json |
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
#File: .azure-pipelines/azure-pipelines-fluxcd.yaml | |
trigger: | |
branches: | |
include: | |
- master | |
- releases/* | |
paths: | |
include: | |
- flux/* |
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
## Install Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# VS Code | |
choco install vscode -y | |
# Chrome | |
choco install googlechrome -y | |
# Utilities |
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
minikube start --cpus 4 --memory 8192 |
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
FROM microsoft/dotnet:2.1-sdk | |
# warmup NuGet package cache | |
COPY packagescache.csproj /tmp/warmup/ | |
RUN dotnet restore /tmp/warmup/packagescache.csproj \ | |
--source https://api.nuget.org/v3/index.json \ | |
--verbosity quiet \ | |
&& rm -rf /tmp/warmup/ | |
WORKDIR / |
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
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# Install add-on software | |
choco install docker-for-windows -y | |
choco install visualstudio2017community -y | |
choco install dotnetcore-sdk -y | |
# Enable HyperV for Docker | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All | |
# Restart | |
Restart-Computer |
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
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get install -y docker.io kubelet kubeadm kubectl | |
systemctl enable docker |
NewerOlder