View gist:e4fceb12d4da9b774256507852203744
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: wordpress-mysql
labels:
app: wordpress
tier: mysql
Octopus.Deployment.Id: deployments-1444
Octopus.Step.Id: f1455da2-4ea2-49dd-9c72-51b4545ac3cd
Octopus.Kubernetes.DeploymentName: wordpress-mysql
View gist:6048f02bd8eb7730a6a5a0907e155530
https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders
nuget locals http-cache -clear
View gist:a10a9627cf253f25db3ebb913bd6b9cd
^(Error|Verbose|Info|January.+|February.+|March.+|April.+|May.+|June.+|July.+|August.+|September.+|October.+|Novermber.+|December.+|[ \t]*)$\r?\n
\s+$
View gist:24ba3dd190d8775d9fe605b3f54515bf
https://stackoverflow.com/questions/32758793/how-to-show-the-run-command-of-a-docker-container
docker pull mysql
docker inspect mysql
View gist:90c6723a8fe31e0e6af95ccad3f49f2f
See https://github.com/kubernetes/kubernetes/issues/48361#issuecomment-342810925
kubectl run -i --rm --tty ubuntu --overrides='
{
"spec": {
"containers": [
{
"name": "ubuntu",
"image": "ubuntu:14.04",
"args": [
View gist:04f1bf938c1dbfdd585d63a16098412f
param (
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
[string]$Certificate
)
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Certificate)) | `
Set-Content -Path certificate.crt
C:\OpenSSL-Win32\bin\openssl pkcs12 -passout pass: -export -nokeys -out certificate.pfx -in certificate.crt
---
View gist:e50261caf316c117a3a63780107f61b7
https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/
http://localhost:8001/api/v1/namespaces/default/services/httpd-service:nginxhttp/proxy/whatever
View gist:884535d95ed90747f29875fd0578b5f2
kubectl version --short --client
#kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/alternative/kubernetes-dashboard.yaml
C:\OpenSSL-Win32\bin\openssl genrsa -des3 -passout "pass:Password01!" -out dashboard.pass.key 2048
C:\OpenSSL-Win32\bin\openssl rsa -passin "pass:Password01!" -in dashboard.pass.key -out dashboard.key
rm dashboard.pass.key
C:\OpenSSL-Win32\bin\openssl req -new -key dashboard.key -out dashboard.csr -subj "/C=AU/ST=Queensland/L=Brisbane/O=OrgName/OU=IT Department/CN=example.com"
C:\OpenSSL-Win32\bin\openssl x509 -req -days 365 -in dashboard.csr -signkey dashboard.key -out dashboard.crt
kubectl create secret generic kubernetes-dashboard-certs --from-file= -n kube-system
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/heapster/master/deploy/kube-config/influxdb/heapster.yaml
View gist:9fa4830c401dfdaeea20c36894eef602
apiVersion: v1
kind: ServiceAccount
metadata:
name: eks-admin
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: eks-admin
View gist:e2c2607a66628b8143c815c12488a911
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: tiller