make use of named k8s ports
This commit is contained in:
parent
ec201a038d
commit
4b01eeadbb
17 changed files with 146 additions and 262 deletions
|
@ -55,10 +55,10 @@ in
|
|||
image = "ubuntu/bind9:9.18-22.04_beta";
|
||||
envFrom = [{ configMapRef.name = "bind9-env"; }];
|
||||
|
||||
ports = [{
|
||||
ports.dns = {
|
||||
containerPort = 53;
|
||||
protocol = "UDP";
|
||||
}];
|
||||
};
|
||||
|
||||
volumeMounts = [
|
||||
{
|
||||
|
@ -88,11 +88,11 @@ in
|
|||
loadBalancerIP = myLib.globals.bind9IPv4;
|
||||
selector.app = "bind9";
|
||||
|
||||
ports = [{
|
||||
ports.dns = {
|
||||
port = 53;
|
||||
targetPort = 53;
|
||||
targetPort = "dns";
|
||||
protocol = "UDP";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue