summary refs log tree commit diff
path: root/nixos/modules/services/cluster/kubernetes
diff options
context:
space:
mode:
authorGeoffrey Huntley <ghuntley@ghuntley.com>2018-05-24 20:06:13 +1000
committerRobin Gloster <mail@glob.in>2018-05-28 18:07:06 +0200
commitf607f01b708aae314914b180f9207af37d28710f (patch)
tree0804e11efba704601408d8b5b739194307e38b5c /nixos/modules/services/cluster/kubernetes
parent0b6c2cfc4d15eac58c8023e174edfb069b816a4e (diff)
downloadnixlib-f607f01b708aae314914b180f9207af37d28710f.tar
nixlib-f607f01b708aae314914b180f9207af37d28710f.tar.gz
nixlib-f607f01b708aae314914b180f9207af37d28710f.tar.bz2
nixlib-f607f01b708aae314914b180f9207af37d28710f.tar.lz
nixlib-f607f01b708aae314914b180f9207af37d28710f.tar.xz
nixlib-f607f01b708aae314914b180f9207af37d28710f.tar.zst
nixlib-f607f01b708aae314914b180f9207af37d28710f.zip
fix: connect the --bind-address arg to the cfg.apiserver.address option
Diffstat (limited to 'nixos/modules/services/cluster/kubernetes')
-rw-r--r--nixos/modules/services/cluster/kubernetes/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/cluster/kubernetes/default.nix b/nixos/modules/services/cluster/kubernetes/default.nix
index 8216e686facd..501925597023 100644
--- a/nixos/modules/services/cluster/kubernetes/default.nix
+++ b/nixos/modules/services/cluster/kubernetes/default.nix
@@ -906,7 +906,7 @@ in {
             ${optionalString (cfg.etcd.keyFile != null)
               "--etcd-keyfile=${cfg.etcd.keyFile}"} \
             --insecure-port=${toString cfg.apiserver.port} \
-            --bind-address=0.0.0.0 \
+            --bind-address=${toString cfg.apiserver.address} \
             ${optionalString (cfg.apiserver.advertiseAddress != null)
               "--advertise-address=${cfg.apiserver.advertiseAddress}"} \
             --allow-privileged=${boolToString cfg.apiserver.allowPrivileged}\