- 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: sqlplus-client | |
labels: | |
app: sqlplus | |
spec: | |
containers: | |
- name: sqlplus | |
image: gvenzl/oracle-free:23 |
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: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: oracle-db | |
namespace: default | |
labels: | |
app: oracle-db | |
spec: | |
serviceName: oracle-svc | |
replicas: 1 |
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
#!/bin/bash | |
# | |
# EBS Volume Mount CLI Script | |
# This script attaches and mounts an EBS volume to an EC2 instance | |
# | |
set -e | |
# Define console colors | |
BLUE='\033[0;34m' |
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 |
NewerOlder