Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Need instructions for Windows #39

Open
trisberg opened this issue Jul 24, 2019 · 5 comments · May be fixed by #40
Open

Need instructions for Windows #39

trisberg opened this issue Jul 24, 2019 · 5 comments · May be fixed by #40
Labels
enhancement New feature or request

Comments

@trisberg
Copy link
Contributor

Following the instructions adapted to Windows fails in the install:

PS C:\Users\trisberg> $SERVICE_ACCOUNT='duffle-runtime'
PS C:\Users\trisberg> $KUBE_NAMESPACE='duffle'
PS C:\Users\trisberg> kubectl create namespace $KUBE_NAMESPACE
namespace/duffle created
PS C:\Users\trisberg> kubectl create serviceaccount "${SERVICE_ACCOUNT}" -n "${KUBE_NAMESPACE}"
serviceaccount/duffle-runtime created
PS C:\Users\trisberg> kubectl create clusterrolebinding "${SERVICE_ACCOUNT}-cluster-admin" --clusterrole cluster-admin --serviceaccount "${KUBE_NAMESPACE}:${SERVICE_ACCOUNT}"
clusterrolebinding.rbac.authorization.k8s.io/duffle-runtime-cluster-admin created
PS C:\Users\trisberg> duffle install myriff https://storage.googleapis.com/projectriff/riff-cnab/snapshots/riff-bundle-latest.json --bundle-is-file -s node_port=true -d k8s
Executing install action...
Error: Install step failed: KUBE_NAMESPACE is required
PS C:\Users\trisberg> echo $KUBE_NAMESPACE
duffle
@trisberg trisberg added the bug Something isn't working label Jul 24, 2019
@trisberg
Copy link
Contributor Author

Looks like I had to add the following to get the value into $env:

$env:KUBE_NAMESPACE=$KUBE_NAMESPACE

@trisberg
Copy link
Contributor Author

trisberg commented Jul 24, 2019

Now I get this:

PS C:\Users\trisberg> duffle install myriff https://storage.googleapis.com/projectriff/riff-cnab/snapshots/riff-bundle-latest.json --bundle-is-file -s node_port=true -d k8s
Executing install action...
time="2019-07-24T14:34:32Z" level=fatal msg="Could not get kubernetes configuration: failed to read token file \"/var/run/secrets/kubernetes.io/serviceaccount/token\": open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory"
Error: Install step failed: Job has reached the specified backoff limit

@sbawaska
Copy link
Contributor

@trisberg Can you try setting SERVICE_ACCOUNT with $env as well? I think it is not being set in the environment just like KUBE_NAMESPACE from your comment above.

@trisberg
Copy link
Contributor Author

Nice,

PS C:\Users\trisberg> $env:SERVICE_ACCOUNT=$SERVICE_ACCOUNT
PS C:\Users\trisberg> echo $env:SERVICE_ACCOUNT
duffle-runtime
PS C:\Users\trisberg> duffle install myriff https://storage.googleapis.com/projectriff/riff-cnab/snapshots/riff-bundle-latest.json --bundle-is-file -s node_port=tr
ue -d k8s
Executing install action...
time="2019-07-24T14:50:38Z" level=info msg="Installing bundle components"
time="2019-07-24T14:50:38Z" level=info
time="2019-07-24T14:50:38Z" level=info msg="installing istio..."
time="2019-07-24T14:50:39Z" level=info msg="done installing istio"
time="2019-07-24T14:50:39Z" level=info msg="installing knative-build..."
time="2019-07-24T14:50:41Z" level=info msg="done installing knative-build"
time="2019-07-24T14:50:41Z" level=info msg="installing knative-serving..."
time="2019-07-24T14:50:45Z" level=info msg="done installing knative-serving"
time="2019-07-24T14:50:45Z" level=info msg="installing riff-system..."
time="2019-07-24T14:50:47Z" level=info msg="done installing riff-system"
time="2019-07-24T14:50:47Z" level=info msg="installing riff-application-build-template..."
time="2019-07-24T14:50:47Z" level=info msg="done installing riff-application-build-template"
time="2019-07-24T14:50:47Z" level=info msg="installing riff-function-build-template..."
time="2019-07-24T14:50:48Z" level=info msg="done installing riff-function-build-template"
time="2019-07-24T14:50:48Z" level=info msg="Kubernetes Application Bundle installed\n\n"

@trisberg trisberg added enhancement New feature or request and removed bug Something isn't working labels Jul 24, 2019
@trisberg
Copy link
Contributor Author

trisberg commented Jul 24, 2019

Uninstall worked too, except I still have the Istio CRDs

PS C:\Users\trisberg> duffle uninstall myriff -d k8s
Executing uninstall action...
time="2019-07-24T15:00:19Z" level=info msg="uninstalling myriff...\n"
time="2019-07-24T15:00:47Z" level=info msg="uninstalling bundle manifest from cluster"
PS C:\Users\trisberg> kubectl get crds
NAME                                   CREATED AT
clusterrbacconfigs.rbac.istio.io       2019-07-24T14:50:45Z
destinationrules.networking.istio.io   2019-07-24T14:50:43Z
envoyfilters.networking.istio.io       2019-07-24T14:50:43Z
gateways.networking.istio.io           2019-07-24T14:50:43Z
httpapispecbindings.config.istio.io    2019-07-24T14:50:43Z
httpapispecs.config.istio.io           2019-07-24T14:50:43Z
manifests.projectriff.io               2019-07-24T14:50:38Z
meshpolicies.authentication.istio.io   2019-07-24T14:50:44Z
policies.authentication.istio.io       2019-07-24T14:50:44Z
quotaspecbindings.config.istio.io      2019-07-24T14:50:43Z
quotaspecs.config.istio.io             2019-07-24T14:50:43Z
rbacconfigs.rbac.istio.io              2019-07-24T14:50:45Z
serviceentries.networking.istio.io     2019-07-24T14:50:43Z
servicerolebindings.rbac.istio.io      2019-07-24T14:50:45Z
serviceroles.rbac.istio.io             2019-07-24T14:50:45Z
sidecars.networking.istio.io           2019-07-24T14:50:43Z
virtualservices.networking.istio.io    2019-07-24T14:50:43Z

@trisberg trisberg linked a pull request Jul 24, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants