Add initial KCL deployment configuration for nginx and project setup

This commit is contained in:
2025-03-14 09:52:55 +08:00
commit 6d793e89b3
4 changed files with 39 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import k8s.api.apps.v1 as appsv1
a = appsv1.Deployment {
apiVersion = "apps/v1"
kind = "Deployment"
metadata = {
name = "nginx"
labels.app = "nginx"
}
spec = {
replicas = 3
selector.matchLabels = metadata.labels
template.metadata.labels = metadata.labels
template.spec.containers = [
{
name = metadata.name
image = "nginx:1.14.2"
ports = [{ containerPort = 80 }]
}
]
}
}