diff --git a/DevOps.html b/DevOps.html index 14259d7..2265fe1 100644 --- a/DevOps.html +++ b/DevOps.html @@ -2,7 +2,7 @@ title: DevOps description: published: true -date: 2023-11-03T14:23:20.337Z +date: 2023-11-07T16:24:00.157Z tags: editor: ckeditor dateCreated: 2023-11-03T08:57:53.006Z diff --git a/DevOps/Kubernetes/Helm.html b/DevOps/Kubernetes/Helm.html index 4677a3d..189a122 100644 --- a/DevOps/Kubernetes/Helm.html +++ b/DevOps/Kubernetes/Helm.html @@ -2,7 +2,7 @@ title: Helm description: published: true -date: 2023-11-07T15:27:06.509Z +date: 2023-11-07T16:24:30.060Z tags: helm editor: ckeditor dateCreated: 2023-11-07T15:25:32.651Z diff --git a/DevOps/Kubernetes/Helm/01-base-helm.md b/DevOps/Kubernetes/Helm/01-base-helm.md index 4e51479..47811d7 100644 --- a/DevOps/Kubernetes/Helm/01-base-helm.md +++ b/DevOps/Kubernetes/Helm/01-base-helm.md @@ -2,7 +2,7 @@ title: 01-Основы helm description: published: true -date: 2023-11-07T15:20:06.720Z +date: 2023-11-07T16:24:26.137Z tags: helm editor: markdown dateCreated: 2023-11-07T15:18:54.227Z diff --git a/DevOps/Kubernetes/Helm/manifests/configmap-confyaml.md b/DevOps/Kubernetes/Helm/manifests/configmap-confyaml.md new file mode 100644 index 0000000..476dcd1 --- /dev/null +++ b/DevOps/Kubernetes/Helm/manifests/configmap-confyaml.md @@ -0,0 +1,34 @@ +--- +title: configmap-confyaml +description: +published: true +date: 2023-11-07T16:24:39.804Z +tags: +editor: markdown +dateCreated: 2023-11-07T16:21:49.220Z +--- + +```yaml +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: openresty-conf +data: + default.conf: | + server { + listen 80; + server_name localhost; + + location / { + root /usr/local/openresty/nginx/html; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/local/openresty/nginx/html; + } + } + +``` \ No newline at end of file diff --git a/DevOps/Kubernetes/Helm/manifests/configmap-htmlyaml.md b/DevOps/Kubernetes/Helm/manifests/configmap-htmlyaml.md new file mode 100644 index 0000000..edcacb9 --- /dev/null +++ b/DevOps/Kubernetes/Helm/manifests/configmap-htmlyaml.md @@ -0,0 +1,50 @@ +--- +title: configmap-htmlyaml +description: +published: true +date: 2023-11-07T16:24:44.112Z +tags: +editor: markdown +dateCreated: 2023-11-07T16:22:02.706Z +--- + +```yaml +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: openresty-html +data: + index.html: | + + + Тестовая страница + + + +

Тестовая страница

+ + + + 50x.html: | + + + + + + Error + + + +

An error occurred.

+

Sorry, the page you are looking for is currently unavailable.
+ Please try again later.

+ + +``` \ No newline at end of file diff --git a/DevOps/Kubernetes/Helm/manifests/deploymentyaml.md b/DevOps/Kubernetes/Helm/manifests/deploymentyaml.md new file mode 100644 index 0000000..bb4a86e --- /dev/null +++ b/DevOps/Kubernetes/Helm/manifests/deploymentyaml.md @@ -0,0 +1,73 @@ +--- +title: deploymentyaml +description: +published: true +date: 2023-11-07T16:24:48.334Z +tags: +editor: markdown +dateCreated: 2023-11-07T16:22:15.907Z +--- + +```yaml +--- +kind: Deployment +apiVersion: apps/v1 +metadata: + name: openresty + labels: + k8s-app: openresty + annotations: + reloader.stakater.com/auto: "true" + configmap.reloader.stakater.com/reload: "openresty" +spec: + replicas: 2 + revisionHistoryLimit: 3 + selector: + matchLabels: + k8s-app: openresty + template: + metadata: + labels: + k8s-app: openresty + spec: + containers: + - name: openresty + image: openresty/openresty:centos-rpm + imagePullPolicy: IfNotPresent + ports: + - containerPort: 80 + name: http + readinessProbe: + httpGet: + path: /index.html + port: http + initialDelaySeconds: 5 + periodSeconds: 15 + livenessProbe: + httpGet: + path: /index.html + port: http + initialDelaySeconds: 5 + periodSeconds: 15 + timeoutSeconds: 5 + resources: + limits: + cpu: "0.2" + memory: "400Mi" + requests: + cpu: "0.1" + memory: "200Mi" + volumeMounts: + - name: html + mountPath: /usr/local/openresty/nginx/html/ + - name: config + mountPath: /etc/nginx/conf.d/ + volumes: + - name: html + configMap: + name: openresty-html + - name: config + configMap: + name: openresty-conf + +``` \ No newline at end of file diff --git a/DevOps/Kubernetes/Helm/manifests/ingressyaml.md b/DevOps/Kubernetes/Helm/manifests/ingressyaml.md new file mode 100644 index 0000000..c779a0d --- /dev/null +++ b/DevOps/Kubernetes/Helm/manifests/ingressyaml.md @@ -0,0 +1,32 @@ +--- +title: ingressyaml +description: +published: true +date: 2023-11-07T16:24:52.559Z +tags: +editor: markdown +dateCreated: 2023-11-07T16:22:28.827Z +--- + +```yaml +--- +kind: Ingress +apiVersion: networking.k8s.io/v1 +metadata: + name: application + annotations: + kubernetes.io/ingress.class: "system-ingress" + certmanager.k8s.io/cluster-issuer: monitoring-issuer +spec: + rules: + - host: "application.kryukov.local" + http: + paths: + - pathType: Prefix + path: / + backend: + service: + name: openresty + port: + number: 80 +``` \ No newline at end of file diff --git a/DevOps/Kubernetes/Helm/manifests/service.md b/DevOps/Kubernetes/Helm/manifests/service.md index 200e16e..784bb81 100644 --- a/DevOps/Kubernetes/Helm/manifests/service.md +++ b/DevOps/Kubernetes/Helm/manifests/service.md @@ -1,3 +1,13 @@ +--- +title: service +description: +published: true +date: 2023-11-07T16:24:34.630Z +tags: +editor: markdown +dateCreated: 2023-11-07T15:49:24.049Z +--- + ```yaml kind: Service apiVersion: v1 diff --git a/DevOps/bash-completion.html b/DevOps/bash-completion.html index a48a71e..2db0dbb 100644 --- a/DevOps/bash-completion.html +++ b/DevOps/bash-completion.html @@ -2,7 +2,7 @@ title: bash-completion для kubectl description: published: true -date: 2023-11-03T14:23:16.354Z +date: 2023-11-07T16:23:56.024Z tags: bash, kubectl editor: ckeditor dateCreated: 2023-11-03T08:55:30.344Z diff --git a/Hackintosh/Soft.html b/Hackintosh/Soft.html index f55e286..48f1188 100644 --- a/Hackintosh/Soft.html +++ b/Hackintosh/Soft.html @@ -2,7 +2,7 @@ title: ПО, которое необходимо для установки и настройки хакинтоша description: published: true -date: 2023-11-07T10:42:26.118Z +date: 2023-11-07T16:24:21.510Z tags: mac, soft, hackintosh editor: ckeditor dateCreated: 2023-11-07T10:42:22.230Z diff --git a/home.html b/home.html index cc1a570..50eed0a 100644 --- a/home.html +++ b/home.html @@ -2,7 +2,7 @@ title: Home Page description: published: true -date: 2023-11-03T14:27:06.918Z +date: 2023-11-07T16:24:08.845Z tags: editor: ckeditor dateCreated: 2023-11-03T14:27:02.804Z diff --git a/sysadmin/backup/syncthing.html b/sysadmin/backup/syncthing.html index 9587a8a..76155b3 100644 --- a/sysadmin/backup/syncthing.html +++ b/sysadmin/backup/syncthing.html @@ -2,7 +2,7 @@ title: Syncthing - резервное копирование description: published: true -date: 2023-11-03T14:25:51.997Z +date: 2023-11-07T16:23:47.655Z tags: syncthing, backup editor: ckeditor dateCreated: 2023-11-02T11:52:22.718Z diff --git a/sysadmin/bash/bash-completion.html b/sysadmin/bash/bash-completion.html index a229362..c4544f4 100644 --- a/sysadmin/bash/bash-completion.html +++ b/sysadmin/bash/bash-completion.html @@ -2,7 +2,7 @@ title: bash-completion автодополнение description: published: true -date: 2023-11-07T10:34:51.808Z +date: 2023-11-07T16:23:52.015Z tags: bash, linux editor: ckeditor dateCreated: 2023-11-03T08:47:49.396Z diff --git a/sysadmin/bash/process-forward.md b/sysadmin/bash/process-forward.md index a0fec05..05f3177 100644 --- a/sysadmin/bash/process-forward.md +++ b/sysadmin/bash/process-forward.md @@ -2,7 +2,7 @@ title: Отвязка процесса от терминальной сессии description: published: true -date: 2023-11-07T10:27:53.840Z +date: 2023-11-07T16:24:13.246Z tags: bash, process, screen editor: markdown dateCreated: 2023-11-07T10:15:03.139Z diff --git a/sysadmin/logs-output/output-shpargalka.md b/sysadmin/logs-output/output-shpargalka.md index c046f9b..a87db00 100644 --- a/sysadmin/logs-output/output-shpargalka.md +++ b/sysadmin/logs-output/output-shpargalka.md @@ -2,7 +2,7 @@ title: Шпаргалка по выводу в терминале description: published: true -date: 2023-11-07T10:39:10.352Z +date: 2023-11-07T16:24:17.608Z tags: output, tee editor: markdown dateCreated: 2023-11-07T10:37:25.945Z diff --git a/sysadmin/ssh/ssh-auth.md b/sysadmin/ssh/ssh-auth.md index 8979b51..12d2046 100644 --- a/sysadmin/ssh/ssh-auth.md +++ b/sysadmin/ssh/ssh-auth.md @@ -2,7 +2,7 @@ title: Авторизация по ключу rsa по ssh description: published: true -date: 2023-11-07T10:28:37.028Z +date: 2023-11-07T16:24:04.921Z tags: ssh, rsa editor: markdown dateCreated: 2023-11-03T12:36:39.209Z