WIP: Restructuring to new scheme
This commit is contained in:
36
clusters/kube0/certs.nix
Normal file
36
clusters/kube0/certs.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, ...}:
|
||||
let
|
||||
pki = pkgs.callPackage ../lib/pki.nix {};
|
||||
in
|
||||
{
|
||||
initca = pki.initca;
|
||||
ca = pki.ca;
|
||||
apiserver = pki.apiserver ''
|
||||
"10.253.18.100",
|
||||
"10.0.0.1",
|
||||
"127.0.0.1",
|
||||
"kubernetes",
|
||||
"kubernetes.default.svc",
|
||||
"etcd0",
|
||||
"fs0-2",
|
||||
"k0-0"
|
||||
'';
|
||||
kube-proxy = pki.kube-proxy;
|
||||
admin = pki.admin;
|
||||
etcd = pki.etcd ''
|
||||
"etcd0",
|
||||
"etcd1",
|
||||
"etcd2",
|
||||
"10.253.18.100",
|
||||
"10.253.18.101",
|
||||
"10.253.18.102",
|
||||
"127.0.0.1"
|
||||
'';
|
||||
k0-0 = pki.worker { name = "k0-0"; ip = "10.253.18.100"; };
|
||||
k0-1 = pki.worker { name = "k0-1"; ip = "10.253.18.101"; };
|
||||
k0-2 = pki.worker { name = "k0-2"; ip = "10.253.18.102"; };
|
||||
k0-3 = pki.worker { name = "k0-3"; ip = "10.253.18.103"; };
|
||||
k0-4 = pki.worker { name = "k0-4"; ip = "10.253.18.107"; };
|
||||
k0-5 = pki.worker { name = "k0-5"; ip = "10.253.18.108"; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user