moving project to gitea

This commit is contained in:
2026-07-26 09:35:26 +02:00
parent c1a36ea29b
commit 4486fdcc8a
61 changed files with 33940 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
selector:
matchLabels:
app: nginx
environment: development
template:
metadata:
labels:
app: nginx
environment: development

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html>
<head>
<title>Nginx - Development</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.container {
text-align: center;
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
h1 {
color: #333;
margin-bottom: 20px;
}
.env-badge {
display: inline-block;
padding: 10px 20px;
border-radius: 5px;
font-size: 24px;
font-weight: bold;
color: white;
background-color: #3498db;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to Nginx</h1>
<div class="env-badge">
DEVELOPMENT ENVIRONMENT
</div>
<p style="margin-top: 20px; color: #666;">This is the development deployment</p>
</div>
</body>
</html>

View File

@@ -0,0 +1,33 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ../../base
namePrefix: dev-
labels:
- pairs:
environment: development
app: nginx-dev
configMapGenerator:
- name: nginx-html
behavior: replace
files:
- index.html
options:
labels:
environment: development
patches:
- path: service-patch.yaml
target:
kind: Service
name: nginx
- path: deployment-patch.yaml
target:
kind: Deployment
name: nginx

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
type: NodePort
selector:
app: nginx
environment: development
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
nodePort: 32080