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

Error during installing the OpenShift templates #21

Closed
LyashenkoGS opened this issue Jul 31, 2017 · 1 comment
Closed

Error during installing the OpenShift templates #21

LyashenkoGS opened this issue Jul 31, 2017 · 1 comment

Comments

@LyashenkoGS
Copy link

LyashenkoGS commented Jul 31, 2017

According to https://donovanmuller.github.io/spring-cloud-dataflow-server-openshift/docs/1.1.0.RELEASE/reference/htmlsingle/#getting-started
I encountered an error during installing templates.
Adding 'scdf' Service Account to the 'anyuid' SCC... Error from server (Forbidden): User "admin" cannot get securitycontextconstraints at the cluster scope
MacBook Pro 2015; OS Sierra; VirtualBox 5.1.22; minishift-1.3.1-darwin-amd64
How to reproduce

minishift start --memory 4028 --cpus 4 --vm-driver virtualbox --openshift-version v1.4.1 
 eval $(minishift oc-env)
 oc login --username=admin --password=admin
 oc new-project scdf --description="Spring Cloud Data Flow"
 curl https://raw.githubusercontent.com/donovanmuller/spring-cloud-dataflow-server-openshift/v1.1.0.RELEASE/src/etc/openshift/install-templates.sh | bash
@donovanmuller
Copy link
Owner

Thanks for the feedback.

The issue is that your admin user does not have the cluster-admin role by default.
You can use a minishift addon to enable that before you start your minishift instance.

$ minishift addons list
-- Installing default add-ons ... OK
- admin-user     : disabled   P(0)
- anyuid         : disabled   P(0)
- xpaas          : disabled   P(0)
$ minishift addons enable admin-user
Add-on 'admin-user' enabled
$ minishift start \
  --cpus 4 --memory 8192 \
  --openshift-version v3.6.0
...

Note: I'm using the latest OpenShift version in the example above. Your mileage may vary.
I'm in the process of updating the Templates for the latest releases (#19) and will update the reference docs regarding new features in minishift etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants