Kargo made some changes

This commit is contained in:
Kargo
2025-04-07 10:33:39 +00:00
parent 8df611a311
commit 263736c46d
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
apiVersion: v1
data:
index.html: |-
<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<h1>test</h1>
</body>
</html>
kind: ConfigMap
metadata:
name: kargo-demo-content

View File

@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: kargo-demo
spec:
replicas: 1
selector:
matchLabels:
app: kargo-demo
template:
metadata:
labels:
app: kargo-demo
spec:
containers:
- image: nginx:1.27.4
name: nginx
volumeMounts:
- mountPath: /usr/share/nginx/html
name: content
readOnly: true
volumes:
- configMap:
name: kargo-demo-content
name: content

13
service-kargo-demo.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: kargo-demo
spec:
ports:
- nodePort: 30181
port: 3000
protocol: TCP
targetPort: 80
selector:
app: kargo-demo
type: NodePort