add test deployment
This commit is contained in:
@@ -4,5 +4,8 @@
|
|||||||
services.k3s = {
|
services.k3s = {
|
||||||
enable = true;
|
enable = true;
|
||||||
role = "server";
|
role = "server";
|
||||||
|
manifests = {
|
||||||
|
test-color.source = ../manifests/test;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
17
manifests/test/deploy.yaml
Normal file
17
manifests/test/deploy.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: test-color
|
||||||
|
namespace: test-color
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: test-color
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: test-color
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: test-color
|
||||||
|
image: kodekloud/webapp-color:latest
|
||||||
17
manifests/test/ingress.yaml
Normal file
17
manifests/test/ingress.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: test-color-ingress
|
||||||
|
namespace: test-color
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: test-color.duby.local
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: test-color
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
4
manifests/test/ns.yaml
Normal file
4
manifests/test/ns.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: test-color
|
||||||
11
manifests/test/svc.yaml
Normal file
11
manifests/test/svc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: test-color
|
||||||
|
namespace: test-color
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: test-color
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
targetPort: 8080
|
||||||
Reference in New Issue
Block a user