-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Using the latest master, 299de57, when I run kubernix without any package parameters kubectl isn't available. Even when I try and add packages with -p kubectl kubernetes-helm, they aren't available in the shell.
$ KUBERNIX_LOG_LEVEL=debug sudo kubernix -p kubernetes-helm kubectl --log-level debug
[DEBUG] Nix environment not found, bootstrapping one
[DEBUG] Adding additional packages: ["kubernetes-helm", "kubectl"]
[DEBUG] Using default overlay
[DEBUG] Loading kernel module 'overlay'
[DEBUG] Loading kernel module 'br_netfilter'
[DEBUG] Loading kernel module 'ip_conntrack'
[DEBUG] Enabling sysctl 'net.bridge.bridge-nf-call-ip6tables'
[DEBUG] Enabling sysctl 'net.bridge.bridge-nf-call-iptables'
[DEBUG] Enabling sysctl 'net.ipv4.conf.all.route_localnet'
[DEBUG] Enabling sysctl 'net.ipv4.ip_forward'
[DEBUG] Using cluster CIDR 10.10.0.0/24
[DEBUG] Using service CIDR 10.10.1.0/24
[DEBUG] Using CRI-O (0) CIDR 10.10.2.0/24
[DEBUG] Creating CA certificates
[DEBUG] CA certificates created
[DEBUG] Creating certificate for tealc
[DEBUG] Certificate created for tealc
[DEBUG] Creating certificate for admin
[DEBUG] Certificate created for admin
[DEBUG] Creating certificate for kubernetes
[DEBUG] Certificate created for kubernetes
[DEBUG] Creating certificate for kube-controller-manager
[DEBUG] Certificate created for kube-controller-manager
[DEBUG] Creating certificate for kube-proxy
[DEBUG] Certificate created for kube-proxy
[DEBUG] Creating certificate for kube-scheduler
[DEBUG] Certificate created for kube-scheduler
[DEBUG] Creating certificate for service-account
[DEBUG] Certificate created for service-account
[DEBUG] Creating kubeconfig for tealc
[DEBUG] Kubeconfig created for tealc
[DEBUG] Creating kubeconfig for kube-proxy
[DEBUG] Kubeconfig created for kube-proxy
[DEBUG] Creating kubeconfig for kube-controller-manager
[DEBUG] Kubeconfig created for kube-controller-manager
[DEBUG] Creating kubeconfig for kube-scheduler
[DEBUG] Kubeconfig created for kube-scheduler
[DEBUG] Creating kubeconfig for admin
[DEBUG] Kubeconfig created for admin
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/etcd/run.yml' found, writing new one
[DEBUG] Waiting for process 'etcd' (etcd) to become ready with pattern: 'ready to serve client requests'
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/crio/tealc/run.yml' found, writing new one
[DEBUG] Waiting for process 'CRI-O' (crio) to become ready with pattern: 'Sandboxes:'
[DEBUG] Found pattern 'Sandboxes:' in line 'time="2020-05-06 10:44:53.737198851-07:00" level=debug msg="Sandboxes: []" file="server/server.go:409"'
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/kubelet/tealc/run.yml' found, writing new one
[DEBUG] Waiting for process 'Kubelet' (kubelet) to become ready with pattern: 'Successfully registered node'
[DEBUG] Found pattern 'ready to serve client requests' in line '2020-05-06 10:44:54.496595 I | embed: ready to serve client requests'
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/apiserver/run.yml' found, writing new one
[DEBUG] Waiting for process 'API Server' (kube-apiserver) to become ready with pattern: 'etcd ok'
[DEBUG] Found pattern 'etcd ok' in line '[+]etcd ok'
[DEBUG] Creating API Server RBAC rule for kubelet
[DEBUG] Found pattern 'Successfully registered node' in line 'I0506 10:44:57.829200 116450 kubelet_node_status.go:73] Successfully registered node tealc'
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/proxy/run.yml' found, writing new one
[DEBUG] Waiting for process 'Proxy' (kube-proxy) to become ready with pattern: 'Caches are synced'
[DEBUG] API Server RBAC rule created
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/scheduler/run.yml' found, writing new one
[DEBUG] No previous run file '/tmp/kubernix/kubernix-run/controllermanager/run.yml' found, writing new one
[DEBUG] Waiting for process 'Scheduler' (kube-scheduler) to become ready with pattern: 'Serving securely'
[DEBUG] Waiting for process 'Controller Manager' (kube-controller-manager) to become ready with pattern: 'Serving securely'
[DEBUG] Found pattern 'Serving securely' in line 'I0506 10:44:58.957975 116722 secure_serving.go:178] Serving securely on [::]:10259'
[DEBUG] Found pattern 'Serving securely' in line 'I0506 10:44:59.101301 116724 secure_serving.go:178] Serving securely on [::]:10257'
[DEBUG] Found pattern 'Caches are synced' in line 'I0506 10:44:59.159248 116663 shared_informer.go:230] Caches are synced for endpoints config'
[DEBUG] Waiting for coredns to be ready
[DEBUG] coredns status not available (0/60s)
[DEBUG] coredns status not available (2/60s)
[DEBUG] coredns status not available (4/60s)
[DEBUG] coredns status not available (6/60s)
[DEBUG] coredns status not available (8/60s)
[DEBUG] coredns status: 0/1 (10/60s)
[DEBUG] coredns status: 0/1 (12/60s)
[DEBUG] coredns status: 0/1 (14/60s)
[DEBUG] coredns status: 0/1 (16/60s)
[DEBUG] coredns status: 0/1 (18/60s)
[DEBUG] coredns status: 0/1 (20/60s)
[DEBUG] coredns status: 0/1 (22/60s)
[DEBUG] coredns status: 0/1 (24/60s)
[DEBUG] coredns status: 0/1 (26/60s)
[DEBUG] coredns status: 0/1 (28/60s)
[DEBUG] coredns status: 0/1 (31/60s)
[DEBUG] coredns status: 0/1 (33/60s)
[DEBUG] coredns status: 0/1 (35/60s)
[DEBUG] coredns status: 0/1 (37/60s)
[DEBUG] coredns status: 0/1 (39/60s)
[DEBUG] coredns status: 0/1 (41/60s)
[DEBUG] coredns status: 1/1 (43/60s)
[DEBUG] coredns ready
[ 51s] █████████████████████████ 22/22 Everything is up and running
[INFO ] Spawning interactive shell
[INFO ] Please be aware that the cluster stops if you exit the shell
[root@tealc:/tmp/kubernix/kubernix-run]# kubectl
The program ‘kubectl’ is currently not installed. It is provided by
several packages. You can install it by typing one of the following:
nix-env -iA nixos.kubectl
nix-env -iA nixos.kubernetes
nix-env -iA nixos.openshift
[root@tealc:/tmp/kubernix/kubernix-run]# helm
The program ‘helm’ is currently not installed. It is provided by
several packages. You can install it by typing one of the following:
nix-env -iA nixos.helm
nix-env -iA nixos.kubernetes-helm
[root@tealc:/tmp/kubernix/kubernix-run]# which kubectl
which: no kubectl in (/run/wrappers/bin:/root/.nix-profile/bin:/etc/profiles/per-user/root/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)
$ cat nix/default.nix
let
pkgs = import ./nixpkgs.nix { overlays = [(import ./overlay.nix)]; };
packages = with pkgs; [
cacert
cfssl
cni-plugins
conmon
conntrack-tools
cri-o
cri-tools
etcd
iproute
iptables
kmod
kubernetes
kubectl
podman
runc
socat
sysctl
utillinux
] ++ [ kubernetes-helm kubectl ];
in packages
Am I missing something?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working