Initial commit: Add test application v1.0

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 04:23:06 +08:00
commit 6b702172e4
3 changed files with 111 additions and 0 deletions

79
manifests/deployment.yaml Normal file
View File

@@ -0,0 +1,79 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-app
namespace: default
labels:
app: test-app
spec:
replicas: 2
selector:
matchLabels:
app: test-app
template:
metadata:
labels:
app: test-app
version: v1
spec:
containers:
- name: nginx
image: nginx:1.25-alpine
ports:
- containerPort: 80
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
volumes:
- name: html
configMap:
name: test-app-html
---
apiVersion: v1
kind: ConfigMap
metadata:
name: test-app-html
namespace: default
data:
index.html: |
<!DOCTYPE html>
<html>
<head>
<title>Test App v1</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.container {
text-align: center;
padding: 50px;
background: rgba(255,255,255,0.1);
border-radius: 20px;
backdrop-filter: blur(10px);
}
h1 { font-size: 3em; margin: 0; }
p { font-size: 1.5em; margin: 20px 0; }
.version {
background: rgba(255,255,255,0.2);
padding: 10px 20px;
border-radius: 10px;
display: inline-block;
}
</style>
</head>
<body>
<div class="container">
<h1>🚀 Test Application</h1>
<p class="version">Version: v1.0</p>
<p>Deployed via GitOps with ArgoCD</p>
<p>Hostname: neta</p>
</div>
</body>
</html>

19
manifests/ingress.yaml Normal file
View File

@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-app
namespace: default
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: test.jpc.net3w.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-app
port:
number: 80

13
manifests/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: test-app
namespace: default
spec:
type: NodePort
selector:
app: test-app
ports:
- port: 80
targetPort: 80
nodePort: 30081