Aptomi / k8s-app-engine

Application delivery engine for k8s
Apache License 2.0
163 stars 19 forks source link

Cannot apply policy to Minikube context #283

Open Jeffertron opened 6 years ago

Jeffertron commented 6 years ago

I followed the instructions (https://github.com/Aptomi/aptomi/blob/master/docs/k8s_minikube.md) for running k8s on my local machine using Minikube v0.25.2.

Unfortunately, when I input this command in step 2: aptomictl gen cluster -n cluster-us-east -c minikube -N east | aptomictl policy apply -f -

...I receive the following error from the Aptomi server:

ERRO[4341] Error while serving request: Error while validating cluster cluster-us-east of type kubernetes: error during init: could not get kubernetes config for cluster cluster-us-east: invalid configuration: [unable to read client-cert /home/jeffertron/.minikube/client.crt for minikube due to open /home/jeffertron/.minikube/client.crt: no such file or directory, unable to read client-key /home/jeffertron/.minikube/client.key for minikube due to open /home/jeffertron/.minikube/client.key: no such file or directory, unable to read certificate-authority /home/jeffertron/.minikube/ca.crt for minikube due to open /home/jeffertron/.minikube/ca.crt: no such file or directory]

After inputting each of the two commands separately, the command before the pipe works, but the command after the pipe gives me that error every time.

romangithub1024 commented 6 years ago

@Frostman can you take a look? sounds like we are uploading YAML with local paths to keys/certs, and it can't be validated