diff --git a/README.md b/README.md index d6c613d..8a03bf6 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,14 @@ Let's take a look how to monitor application code using Prometheus. See the [Prometheus Monitoring](./prometheus-monitoring/readme.md) readme guide for detailed steps +## Kubernetes Development Basics + +See the [Kubernetes Guide](./kubernetes/readme.md) readme guide for detailed steps + +Part #1 Kubernetes Getting Started on Windows
+Video: https://youtu.be/8h4FoWK7tIA
+ +Part #2 Kubernetes kubectl | the basics
+Video: https://youtu.be/feLpGydQVio
More details coming soon! diff --git a/kubernetes/deployments/deployment.yaml b/kubernetes/deployments/deployment.yaml new file mode 100644 index 0000000..15eef6c --- /dev/null +++ b/kubernetes/deployments/deployment.yaml @@ -0,0 +1,35 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: example-deploy + labels: + app: example-app + annotations: +spec: + replicas: 2 + template: + metadata: + labels: + app: example-app + spec: + imagePullSecrets: + - name: "docker-registry" + containers: + - name: example-app + image: aimvector/example-app + imagePullPolicy: Always + ports: + - containerPort: 80 + livenessProbe: + httpGet: + path: /status + port: 80 + initialDelaySeconds: 3 + periodSeconds: 3 + resources: + requests: + memory: "64Mi" + cpu: "50m" + limits: + memory: "256Mi" + cpu: "500m" \ No newline at end of file diff --git a/kubernetes/deployments/readme.md b/kubernetes/deployments/readme.md new file mode 100644 index 0000000..d38d164 --- /dev/null +++ b/kubernetes/deployments/readme.md @@ -0,0 +1,26 @@ +# Deployments + +Build an example app: + +``` +# Important! +# make sure you are at root of the repository +# in your terminal + +# you can choose which app you want to build! + + +# aimvector/golang:1.0.0 +docker-compose build golang + + +# aimvector/csharp:1.0.0 +docker-compose build csharp + +# aimvector/nodejs:1.0.0 +docker-compose build nodejs + +# aimvector/python:1.0.0 +docker-compose build python + +``` \ No newline at end of file diff --git a/kubernetes/kubectl.md b/kubernetes/kubectl.md new file mode 100644 index 0000000..178c18d --- /dev/null +++ b/kubernetes/kubectl.md @@ -0,0 +1,62 @@ + +VIDEO : https://youtu.be/feLpGydQVio + +## Configs + +``` +kubectl config + +#${HOME}/.kube/config +#kubectl config --kubeconfig="C:\someotherfolder\config" +#$KUBECONFIG + +``` + +### contexts + +``` +#get the current context +kubectl config current-context + +#get and set contexts +kubectl config get-contexts +kubectl config use-context + +``` + +## GET commands +``` +kubectl get + +#examples +kubectl get pods +kubectl get deployments +kubectl get services +kubectl get configmaps +kubectl get secrets +kubectl get ingress + +``` + +## Namespaces + +``` +kubectl get namespaces +kubectl create namespace test +kubectl get pods -n test + +``` + +## Describe command + +Used to troubleshoot states and statuses of objects + +``` +kubectl describe +``` + +## Version + +``` +kubectl version +``` \ No newline at end of file diff --git a/kubernetes/readme.md b/kubernetes/readme.md new file mode 100644 index 0000000..e97f924 --- /dev/null +++ b/kubernetes/readme.md @@ -0,0 +1,7 @@ +# Kubernetes Development Series + +## KUBECTL Basics Video + +Checkout [kubectl](./kubectl.md) for detailed steps + +## Deployments