Kargo made some changes

This commit is contained in:
Kargo
2025-04-07 10:29:27 +00:00
parent e3f42d58c7
commit e388c6e4c7
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>dev</title>
</head>
<body>
<h1>dev</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: 30182
port: 3000
protocol: TCP
targetPort: 80
selector:
app: kargo-demo
type: NodePort