k8s-app-engine icon indicating copy to clipboard operation
k8s-app-engine copied to clipboard

Cannot apply policy to Minikube context

Open Jeffertron opened this issue 7 years ago • 1 comments

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.

Jeffertron avatar Apr 10 '18 03:04 Jeffertron

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

romangithub1024 avatar Apr 10 '18 05:04 romangithub1024