You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
686 B
Plaintext

{
addNamespace(manifest, namespace)::
manifest +
{
metadata+: {
namespace: namespace
}
},
createNamespace(namespace)::
{
apiVersion: "v1",
kind: "Namespace",
metadata: {
name: namespace
}
},
service(name, ports, ip=null)::
{
apiVersion: "v1",
kind: "Service",
metadata: {
name: name
},
spec: {
type: "LoadBalancer",
selector: {
app: name
},
ports: ports,
[if ip != null then "loadBalancerIP"]: ip
}
}
}