Add initial KCL deployment configuration for nginx and project setup
This commit is contained in:
@@ -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 }]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user