diff --git a/ISTIO/README.md b/ISTIO/README.md new file mode 100644 index 0000000..2c85270 --- /dev/null +++ b/ISTIO/README.md @@ -0,0 +1,14 @@ +### ISTIO +Der folgende Repository beinhaltet die erstellten Definition des ISTIO Services, die bei dem Kurs `Istio Hands-On for Kubernetes` behandelt wurden. + +``` +. +├── 1-istio-init.yaml +├── 2-istio-minikube.yaml +├── 3-kiali-secret.yaml +├── 4-label-default-namespace.yaml +├── 5-application-no-istio.yaml +└── README.md + +0 directories, 6 files +``` \ No newline at end of file diff --git a/Kubernetes/README.md b/Kubernetes/README.md new file mode 100644 index 0000000..4dac356 --- /dev/null +++ b/Kubernetes/README.md @@ -0,0 +1,113 @@ +### Kubernetes +Der folgende Repository beinhaltet die erstellten Definition des Kubernetes Orchestration Tools, die bei den Kursen `Udemy - Certified Kubernetes Administrator (CKA) with Practice Tests` und `Linux Foundation - Certified Kubernetes Administrator (CKA)` behandelt wurden. + +``` +. +├── abac-authorization-definition.json +├── abstimmung-app +│   ├── abstimmung-app-pod.yaml +│   ├── deployments +│   │   ├── abstimmung-app-deploy.yaml +│   │   ├── abstimmung-app-service.yaml +│   │   ├── ergebnisse-app-deploy.yaml +│   │   ├── ergebnisse-app-service.yaml +│   │   ├── postgres-deploy.yaml +│   │   ├── postgress-service.yaml +│   │   ├── redis-deploy.yaml +│   │   ├── redis-service.yaml +│   │   └── worker-deploy.yaml +│   ├── ergebnisse-app-pod.yaml +│   ├── postgres-pod.yaml +│   ├── redis-pod.yaml +│   └── worker-pod.yaml +├── all-deploy-services.yaml +├── ca.crt +├── ca.csr +├── ca.key +├── certificate-Signing-Request-Definition.yaml +├── clusterIP-service-definition.yml +├── cluster-role-user-adding-definition.yml +├── cluster-role-user-and-storage-adding-definition.yml +├── config-map.yml +├── daemon-set-definition.yml +├── daemonset-definition.yml +├── deployment-definition-with-node-affinity-2.yml +├── deployment-definition-with-node-affinity.yml +├── deployment-definition-with-recreate-strategy.yml +├── deployment-definition-with-rolingupdate-strategy.yml +├── deployment-definition.yml +├── deployment-definiton-webapp.yml +├── deployment-definiton.yaml +├── deployment-httpd-replicas.yml +├── deployment-with-service-account.yml +├── developer-role.yml +├── devuser-developer-binding.yml +├── Dockerfile +├── event-simulator.yml +├── ktop +├── kube-apiserver-with-basic-auth-file.yml +├── kube-apiserver.yml +├── kube-config-definition.yml +├── kube-config-with-namespaces-certifikates-definition-1.yml +├── kube-config-with-namespaces-certifikates-definition.yml +├── LFS258 +│   ├── car-map.yaml +│   ├── cluster-creation.yaml +│   ├── cron-job-with-output.yaml +│   ├── customResource +│   │   ├── crd.yaml +│   │   └── new-crontab.yaml +│   ├── deployment-with-taint.yaml +│   ├── ds_changed_strategy.yaml +│   ├── ds.yaml +│   ├── favorite +│   ├── pods-into-vip-node.yaml +│   ├── primary +│   │   ├── black +│   │   ├── cyan +│   │   ├── magenta +│   │   └── yellow +│   ├── pvc.yaml +│   ├── rs.yaml +│   ├── secret.yaml +│   └── simpleshell.yaml +├── loadBalancer-service-definition.yml +├── namespace-dev-definition.yml +├── network-policy-definition-allowed-from-all-namespaces.yml +├── nginx-definition1.yaml +├── nginx-definition.yaml +├── nodePort-service-definition.yml +├── persistent-volume-claim-definition.yml +├── persistent-volume-definition.yml +├── pod-definition-dev-namespace.yml +├── pod-definition-multiple-containers.yml +├── pod-definition-nodeName.yml +├── pod-definition-with-commands-and-arguments-1.yml +├── pod-definition-with-commands-and-arguments.yml +├── pod-definition-with-commands.yml +├── pod-definition-with-config-map-variables-injection.yml +├── pod-definition-with-init-container.yml +├── pod-definition-with-random-generation-numbers-and-volume.yml +├── pod-definition_with_resource_limits.yaml +├── pod-definition-with-secret-reference.yml +├── pod-definition-with-toleration.yml +├── pod-definition.yml +├── pod-with-toleration-definiton-1.yml +├── pod-with-toleration-definiton-2.yml +├── postgres_with_env_variable.yaml +├── rc-definition.yml +├── README.md +├── replicaSet-definition.yaml +├── replicaset-definition.yml +├── replicaset-definiton.yml +├── replication_controller-definition.yaml +├── resource-quota-definition.yml +├── role-definition-kube-apiserver.yml +├── secret-definiton.yml +├── security-definiton-kube-apiserver.yml +├── service-definition.yaml +├── user-details.csv +└── user-token-details.csv + +5 directories, 100 files +``` \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..872a9f1 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Das DevOps Repository beinhaltet derzeit folgende Bereiche +In jedem Bereich befindet sich README.md Datei. Im Root Ordner des Bereichs steht entweder Anleitung, Beschreibung oder Datei Structur des Bereichs +### Kubernetes +>[./Kubernetes/README.md]([https://https://git.me2digital.com/d.aster/DevOps/]) +### Helm Tool +>[./helm/README.md]([https://](https://git.me2digital.com/d.aster/DevOps/src/branch/master/helm)) +### Cady Server +>[./caddy-server/README.md]([https://](https://git.me2digital.com/d.aster/DevOps/src/branch/master/caddy-server)) +### ISTIO +>[./ISTIO/README.md](https://git.me2digital.com/d.aster/DevOps/src/branch/master/ISTIO) \ No newline at end of file diff --git a/caddy-server/README.md b/caddy-server/README.md new file mode 100644 index 0000000..919bb1a --- /dev/null +++ b/caddy-server/README.md @@ -0,0 +1,11 @@ +### CADY Server +Die folgenden Cady Server Definitionen beinhaltet Konfiguration des Servers, der auf verschiedene "requeste" entweder mit der `curl ` oder mit der Konfiguration Anfrage `caddy-server/configuration-definition-with-API-more-interfaces` reagiert. +``` +. +├── Caddyfile +├── configuration-definition-with-API +├── configuration-definition-with-API-more-interfaces +└── README.md + + 0 directories, 4 files +``` diff --git a/helm/README.md b/helm/README.md new file mode 100644 index 0000000..1f7fd4d --- /dev/null +++ b/helm/README.md @@ -0,0 +1,62 @@ +### HELM + Der folgende Ordner beinhaltet zwei locale HELM Chart Templates, womit kann man dynamisch/oder wieder verwendeten Objekte des Kubernetes generieren und sie in die Kubernetes Cluster deployen. In folgenden Beispielen kann man dynamisch ein `Deployment`, `namespace`, `pod`, `service` als auch ein postgres generieren/erstellen. + +Deployment eines Charts in die Kubernetes Cluster + +`helm install .` +``` +. +├── deployment +│ ├── Chart.yaml +│ ├── NOTES.txt +│ ├── pod.yaml +│ ├── service.yaml +│ ├── templates +│ │ ├── deployment.yaml +│ │ ├── _helpers.tpl +│ │ └── namespace.yaml +│ └── values.yaml +├── postgress +│ ├── Chart.yaml +│ ├── postgress.yaml +│ ├── templates +│ │ ├── _helpers.tpl +│ │ ├── NOTES.txt +│ │ ├── postgress-config.yaml +│ │ ├── postgress-deployment.yaml +│ │ ├── postgress-pvc.yaml +│ │ └── postgress-svc.yaml +│ └── values.yaml +└── README.md + +4 directories, 18 files +``` + +Ein Beispiel eines Deployments Definition `./template/deployment.yaml`die nimmt die Daten aus der `./values.yaml` und erstellt ein Deployment in die Kuberenetes Cluster +``` +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + {{- $replica := .Values.replicacount}} + {{- $image := .Values.imagenginx}} + {{- with .Values.service}} + app: {{.labels.app}} + name: {{.labels.app}}-deployment +spec: + replicas: {{$replica}} + selector: + matchLabels: + app: {{.labels.app}} + strategy: {} + template: + metadata: + labels: + app: {{.labels.app}} + spec: + containers: + - image: {{$image}} + name: {{.labels.app}} + imagePullPolicy: IfNoPresent + {{end}} +``` \ No newline at end of file diff --git a/helm/Chart.yaml b/helm/deployment/Chart.yaml similarity index 100% rename from helm/Chart.yaml rename to helm/deployment/Chart.yaml diff --git a/helm/templates/NOTES.txt b/helm/deployment/NOTES.txt similarity index 100% rename from helm/templates/NOTES.txt rename to helm/deployment/NOTES.txt diff --git a/helm/templates/pod.yaml b/helm/deployment/pod.yaml similarity index 100% rename from helm/templates/pod.yaml rename to helm/deployment/pod.yaml diff --git a/helm/templates/service.yaml b/helm/deployment/service.yaml similarity index 100% rename from helm/templates/service.yaml rename to helm/deployment/service.yaml diff --git a/helm/templates/.helmignore b/helm/deployment/templates/.helmignore similarity index 100% rename from helm/templates/.helmignore rename to helm/deployment/templates/.helmignore diff --git a/helm/templates/_helpers.tpl b/helm/deployment/templates/_helpers.tpl similarity index 100% rename from helm/templates/_helpers.tpl rename to helm/deployment/templates/_helpers.tpl diff --git a/helm/templates/deployment.yaml b/helm/deployment/templates/deployment.yaml similarity index 100% rename from helm/templates/deployment.yaml rename to helm/deployment/templates/deployment.yaml diff --git a/helm/templates/namespace.yaml b/helm/deployment/templates/namespace.yaml similarity index 100% rename from helm/templates/namespace.yaml rename to helm/deployment/templates/namespace.yaml diff --git a/helm/values.yaml b/helm/deployment/values.yaml similarity index 100% rename from helm/values.yaml rename to helm/deployment/values.yaml diff --git a/postgress/Chart.yaml b/helm/postgress/Chart.yaml similarity index 100% rename from postgress/Chart.yaml rename to helm/postgress/Chart.yaml diff --git a/postgress/postgress.yaml b/helm/postgress/postgress.yaml similarity index 100% rename from postgress/postgress.yaml rename to helm/postgress/postgress.yaml diff --git a/postgress/templates/NOTES.txt b/helm/postgress/templates/NOTES.txt similarity index 100% rename from postgress/templates/NOTES.txt rename to helm/postgress/templates/NOTES.txt diff --git a/postgress/templates/_helpers.tpl b/helm/postgress/templates/_helpers.tpl similarity index 100% rename from postgress/templates/_helpers.tpl rename to helm/postgress/templates/_helpers.tpl diff --git a/postgress/templates/postgress-config.yaml b/helm/postgress/templates/postgress-config.yaml similarity index 100% rename from postgress/templates/postgress-config.yaml rename to helm/postgress/templates/postgress-config.yaml diff --git a/postgress/templates/postgress-deployment.yaml b/helm/postgress/templates/postgress-deployment.yaml similarity index 100% rename from postgress/templates/postgress-deployment.yaml rename to helm/postgress/templates/postgress-deployment.yaml diff --git a/postgress/templates/postgress-pvc.yaml b/helm/postgress/templates/postgress-pvc.yaml similarity index 100% rename from postgress/templates/postgress-pvc.yaml rename to helm/postgress/templates/postgress-pvc.yaml diff --git a/postgress/templates/postgress-svc.yaml b/helm/postgress/templates/postgress-svc.yaml similarity index 100% rename from postgress/templates/postgress-svc.yaml rename to helm/postgress/templates/postgress-svc.yaml diff --git a/postgress/values.yaml b/helm/postgress/values.yaml similarity index 100% rename from postgress/values.yaml rename to helm/postgress/values.yaml diff --git a/postgress/templates/test-connection.yaml b/postgress/templates/test-connection.yaml deleted file mode 100644 index e69de29..0000000