brew install minikube
# install docker cli only
brew install docker
brew install docker-compose
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: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: dev-role | |
namespace: dev | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- nodes |
Tools
- Kops https://github.com/kubernetes/kops/blob/master/docs/README.md
- Kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/
- kubespy https://blog.pulumi.com/kubespy-trace-a-real-time-view-into-the-heart-of-a-kubernetes-service
- kops https://icicimov.github.io/blog/virtualization/Kubernetes-Cluster-in-AWS-with-Kops/
Presentations
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: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: dev-readonly-role | |
namespace: dev | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- nodes |
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: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: eks-demo-readonly-clusterrole | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- nodes | |
- namespaces |
brew install lima
2022-02-07: nerdctl is not supported for MacOS. Cannot install via brew install nerdctl
Set alias in .bashrc
or .zshrc
alias docker="lima nerdctl"
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
/* | |
Git env vars you might need in jenkins | |
Jenkins ENV Reference: | |
env.GIT_COMMIT: the commit sha of the current build | |
env.BRANCH_NAME: the branch name OR tag name of the current build, when it exists | |
env.GIT_BRANCH: same as BRANCH_NAME | |
env.TAG_NAME: the tag name of the current build, when it exists | |
*/ | |
// stash and unstash |
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
server { | |
listen 80; | |
server_name www.example.com example.com; | |
# Redirect all traffic to SSL | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443 ssl default_server; |
Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.
Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).
It should look something like the content below; call it my-site.conf
or something like that.
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
package ciphers | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/sha512" | |
"crypto/x509" | |
"encoding/pem" | |
"log" | |
) |
NewerOlder