fix
parent
6ef085858e
commit
8f2c2adf8f
|
|
@ -1,24 +0,0 @@
|
|||
```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;
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
```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>
|
||||
```
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
---
|
||||
title: ingressyaml
|
||||
description:
|
||||
published: true
|
||||
date: 2023-11-07T17:56:00.244Z
|
||||
tags:
|
||||
editor: markdown
|
||||
dateCreated: 2023-11-07T17:42:43.772Z
|
||||
---
|
||||
|
||||
```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
|
||||
```
|
||||
Loading…
Reference in New Issue