Closed joh4n closed 4 years ago
Thanks a lot for trying kip, @joh4n !
First I add the aws credentials in deploy/manifests/kip/base/provider.yaml
If you want to use kip on minikube, kustomize scrips in https://github.com/elotl/kip/blob/master/deploy/manifests/kip/overlays/minikube/
are a better choice. Can you please retry with manifests in this directory? If you still do not see kip node, kubectl -n kube-system get pods
should show *kip*
pod. Can you please share kubectl logs
from kip pod? Thanks!
One other note: We updated the name of the kip pod to kip-provider-0
and missed updating the references in the README and troubleshooting doc. Apologies!
As @myechuri pointed out, you'll want to give the minikube manifests a shot. Minikube is a bit of a different setup for kip and you'll need to configure a couple additional items to make kip work (check out the instructions here: https://github.com/elotl/kip/blob/master/deploy/manifests/kip/overlays/minikube/kustomization.yaml#L1-L26):
Feel free to comment here if things are unclear or if you run into issues.
I missed the minikube folder thx. However, I followed the instructions in: https://github.com/elotl/kip/blob/master/deploy/manifests/kip/overlays/minikube/kustomization.yaml#L1-L26
with provider.yaml
apiVersion: v1
cloud:
aws:
# You can also use environment variables for region, access and secret key.
region: eu-central-1
accessKeyID: ""
secretAccessKey: ""
vpcID: vpc-0eddxxxxxxxxxxx
subnetID: subnet-0eexxxxxxxx
etcd:
internal:
dataDir: /opt/kip/data
cells:
standbyCells:
defaultInstanceType: t3.nano
defaultVolumeSize: 15G
bootImageSpec:
owners: 689494258501
filters: name=elotl-kip-*
nametag: minikube
itzo:
url: https://itzo-kip-download.s3.amazonaws.com
version: latest
# Optional, if kip needs to connect to cells via public IPs.
# extraCIDRs:
# - FILL_IN
extraSecurityGroups:
- sg-0bf4xxxxxxx
kubelet:
cpu: "100"
memory: "512Gi"
pods: "200"
and kustomization.yaml
bases:
- ../minikube
namespace: kube-system
configMapGenerator:
- name: kip-config
behavior: merge
files:
- provider.yaml
secretGenerator:
- name: kip-secrets
literals:
- AWS_ACCESS_KEY_ID=AKIxxxxxxxxx
- AWS_SECRET_ACCESS_KEY=1lXxxxxxxxxxxxxxxxxx
with that kustomiztion.yaml I get the error
Error: merging from generator &{0xc0007f6120 { } {{ kip-config merge {[] [provider.yaml] []} <nil>}}}: id resid.ResId{Gvk:resid.Gvk{Group:"", Version:"v1", Kind:"ConfigMap"}, Name:"kip-config", Namespace:""} does not exist; cannot merge or replace
error: no objects passed to apply
so I updated it with
.
.
configMapGenerator:
- name: config
behavior: merge
.
.
.
that runs but I get the error:
kubectl -n kube-system logs kip-provider-0
error: a container name must be specified for pod kip-provider-0, choose one of: [kip kube-proxy] or one of the init containers: [init-cert]
Hi @joh4n ,
kubectl -n kube-system logs kip-provider-0 error: a container name must be specified for pod kip-provider-0, choose one of: [kip kube-proxy] or one of the init containers: [init-cert]
Can you please run kubectl logs -n kube-system kip-provider-0 kip
? kip-provider-0
is a pod with kip
container in it, and we would be interested in logs from kip
container.
Also, can you please confirm if you see kip-provider-0
in the output of kubectl get nodes
? Thanks.
region: eu-central-1
@joh4n : kip trial is currently setup for us-east-1
region . Apologies for not calling this out in the readme, we will update readme. Can you please try us-east-1
? Thanks.
This is with us-east-1 as a region.
(ignore fatal: ref HEAD is not a symbolic ref
it is a set up issue in my zsh when I check out a tag and I have been to lazy to fix it)
@joh4n : let me repeat your steps with your your kustomization.yaml
and see if i can reproduce your error. Will update by the end of the day.
@joh4n : i reproduced your CreateContainerConfigError
error in my local setup. The cause of failure is below:
Warning Failed 17s (x5 over 70s) kubelet, m01 Error: secret "provider-secret" not found
This is because of minikube kustomize overlay scripts being out of sync with base. Let me fix that and share an update by the end of day PT wednesday.
@joh4n : the issue is now fixed in master. There were two issues:
1) Instructions in the beginning of overlays/minikube/kustomization.yaml
were outdated. This is what you followed and ran into failed apply.
2) We switched from listing AWS credentials in provider.yaml
to specifying it via a secret in some of the deploy paths (minikube, provision your own cluster, burst kip workloads from on-prem cluster to AWS/GCP, etc). Some of the scripts in overlays/minikube
assumed old format and some assumed new format. Apologies for this issue. i fixed overlays/minikube
to use AWS credentials in provider.yaml
by default and not rely on a secret.
Master now has fixes for both 1 and 2. https://github.com/elotl/kip/tree/master/deploy/manifests/kip/overlays/minikube/README.md
has the latest instructions. i tested the latest instructions with latest bits. Please let me know how the latest bits work for you. Thank you for your patience!
Also, we've distributed our images across all AWS regions so you can now run in us-central-1.
@joh4n : checking in to see if you were able to make progress with your minikube env? Please let us know if there are any further issues. Thanks!
Hi, I just came across kip and wanted to try it out with minikube. I have gone trough the installation instructions several times and I still can not get it to run correctly.
It looks like some pods and or nodes does not get created properly when staring kip.
First I add the aws credentials in
deploy/manifests/kip/base/provider.yaml
then.I get the output
I do not see any pods:
or nodes related to kip
as mentioned in the readm: "After applying, you should see a new kip pod in the kube-system namespace and a new node named "kip-0" in the cluster."
and not unsuprisingly:
When trying to deploy a basic ngnx service
with
kubectl apply -f nginx-deployment-virt-kub.yaml
the job get stuck as pending:
versions
I tried this both on the latest master (hash 891adef0e0f0e552956254a3dbe2a9e01fac9aa6) and v0.0.17 and v0.0.15