del manifests

main
Федоров Дмитрий 2023-11-09 18:08:05 +03:00
parent f1dd1646b5
commit 4a6949871a
5 changed files with 0 additions and 220 deletions

View File

@ -1,34 +0,0 @@
---
title: configmap-conf
description:
published: true
date: 2023-11-07T18:15:46.644Z
tags:
editor: markdown
dateCreated: 2023-11-07T18:05:41.208Z
---
```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;
}
}
```

View File

@ -1,50 +0,0 @@
---
title: configmap-html
description:
published: true
date: 2023-11-07T18:15:51.014Z
tags:
editor: markdown
dateCreated: 2023-11-07T18:05:47.418Z
---
```yaml
---
kind: ConfigMap
apiVersion: v1
metadata:
name: openresty-html
data:
index.html: |
<html>
<head>
<title>Тестовая страница</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Тестовая страница</h1>
</body>
</html>
50x.html: |
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Error</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
</body>
</html>
```

View File

@ -1,82 +0,0 @@
---
title: deployment
description:
published: true
date: 2023-11-07T18:17:23.929Z
tags:
editor: markdown
dateCreated: 2023-11-07T18:05:54.420Z
---
```yaml
---
title: deployment
description:
published: true
date: 2023-11-07T18:13:53.017Z
tags:
editor: markdown
dateCreated: 2023-11-07T18:05:54.420Z
---
---
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
```

View File

@ -1,32 +0,0 @@
---
title: ingress
description:
published: true
date: 2023-11-07T18:15:59.927Z
tags:
editor: markdown
dateCreated: 2023-11-07T18:06:01.729Z
---
```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
```

View File

@ -1,22 +0,0 @@
---
title: service
description:
published: true
date: 2023-11-07T18:15:42.318Z
tags:
editor: markdown
dateCreated: 2023-11-07T15:49:24.049Z
---
```yaml
kind: Service
apiVersion: v1
metadata:
name: openresty
spec:
ports:
- port: 80
targetPort: 80
selector:
k8s-app: openresty
```