Skip to content

Instantly share code, notes, and snippets.

View NileshGule's full-sized avatar

Nilesh Gule NileshGule

View GitHub Profile

Pre-requisites for Docker Hands On Lab

For the first part of the Docker hands on session, following software will be required

  • Github account (Optional)
  • Dockerhub account (Optional)
  • Docker installed locally on the machine (Mandatory)
  • Lightweight code editor
  • Powershell (Optional)
  • Terminal (Optional)
  • DotNet Core (Optional)
@NileshGule
NileshGule / api-deployment.yml
Last active August 7, 2018 15:03
Files related to blog post on init-container
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: techtalksapi
namespace: abc2018sg
labels:
run: techtalksapi
spec:

Pre-requisites for AKS Learning Series - Part 2 - Docker Compose

  • All the pre-requisites from Part 1 related to Docker Hands on Lab
  • Docker-compose Verify that docker-compose is succesfully installed by running the following command in your favourite terminal
docker-compose version
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst Microsoft-Windows-Subsystem-Linux -source windowsFeatures
# Enable Windows Controlled Folder Access
Set-MpPreference -EnableControlledFolderAccess Enabled
cinst -y 7zip.install --cacheLocation "$env:userprofile\AppData\Local\Temp\chocolatey"
@NileshGule
NileshGule / skaffold.yaml
Created August 26, 2018 12:02
Gist for scaffold with qinikube blog
apiVersion: skaffold/v1alpha2
kind: Config
build:
artifacts:
- imageName: nileshgule/sqlclient
workspace: ../src/TechTalksDB
- imageName: nileshgule/techtalksweb
workspace: ../src/TechTalksWeb
- imageName: nileshgule/techtalksapi
workspace: ../src/TechTalksAPI
@NileshGule
NileshGule / 01_storage-class.yml
Last active September 13, 2018 14:50
Gist for PV and PVC post
---
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: azure-disk
namespace: abc2018sg
provisioner: kubernetes.io/azure-disk
parameters:
storageaccounttype: Standard_LRS
kind: Managed
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: sqlserverstatefulset
namespace: abc2018sg
spec:
serviceName: db-deployment
replicas: 1
template:
@NileshGule
NileshGule / kubernetes-secrets-sa-password.yml
Created November 7, 2018 11:18
Gist related to Kubernetes Secrets blog post
---
apiVersion: v1
kind: Secret
metadata:
name: sqlsecret
namespace: aks-part4
type: Opaque
data:
sapassword: SnVuZUAyMDE4
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: db-deployment
namespace: aks-part4
spec:
serviceName: db-deployment
replicas: 1
template: