Comments (12)
from learn-katacoda.
I can't remember setting to login as system:admin, I thought that was the default :)
Within the launch script we can change the environment to match. https://github.com/openshift-evangelists/intro-katacoda/blob/master/environments/openshift/scripts/openshift.sh
Could you tell me how to login as a different user please?
from learn-katacoda.
I guess it's not logged in on purpose, but it's there.
I would probably have no user logged in, by default, so asking for an implicit login, but if you want to login:
oc login -u default -p default
Would login a user named default. In default install of OpenShift, it uses anyuserandpassword, so you can log in with whatever you want.
We're still discussing this though. Copy involved parties for them to chime in.
cc/ @GrahamDumpleton @marekjelen @gshipley @mhausenblas @thesteve0 @Charlaxy
from learn-katacoda.
Yeah, developer:developer, I also use it here: https://www.katacoda.com/mhausenblas/courses/intro-openshift/kubectl-to-oc-new-app
from learn-katacoda.
I raised the issue of initial project and default user a long time back, probably before we were using issue tracker, so was in email. Was raised as part of discussion noting that stuff run from env-init.sh
runs in parallel and not before user gets access. So although I was creating initial project and logging in user from script env-init.sh
to get it, if user was very quick in firing off first command they could do it as wrong user or in wrong project as script hadn't fired the command.
What we possibly want is a way for initial project and user to be optionally set up. That is, not always do it. If we always enable doing it with 'developer/developer' as user and 'myproject' as default project (matching oc cluster up etc), then that project pre-created will break existing scenarios which say to create project. So need a way of saying what it done.
from learn-katacoda.
One issue with forcing a logged in user by default, is that you make it harder to run commands as an admin. You would need to reference the credentials from file in OpenShift config directory.
What I suggest is following.
- Create a new user called
katacoda
and have it logged in as that by default. - Give the user
katacoda
sudoer role access so that if is this user at startup, still have a way of running admin commands fromenv-init.sh
file by using impersonation, although still have issue those being in parallel, so need to be careful of doing that if telling user to login as different user. - Create a new project called
katacoda
created bykatacoda
user and have it as default. - Set up an
admin
user withcluster-admin
role so have a user can login as to do admin stuff.
This shouldn't break existing scenario flows as someone would still be able to login as developer
as are doing now and create myproject
.
Can have them log in as admin
if need to run administrator stuff.
from learn-katacoda.
I could agree, but I don't :-D
I think that from env-init.sh, we can reference a KUBECONFIG file that logs a user as admin and just for that shell execution, so that can do provisioning without any boilerplate.
Then, I would in the VM have no user logged in and no project logged in, so that a user needs to explicitly login and create the project.
That would not break any scenario.
OK, with having the user admin precreated, for easy of use.
from learn-katacoda.
Don't disagree with referencing kubconfig in env-init.sh.
After having written five scenarios, working on sixth now, having to have the login/project creation as first exercise in all of them is getting to be a pain.
from learn-katacoda.
@GrahamDumpleton maybe we then need just to keep that for the "complete" tutorials. And the "deep dives" just use a logged in user and project.
from learn-katacoda.
Yep, which is why suggested a default logged in user and project of 'katacoda'. That way when login as 'developer' and create 'developer' project it still works and no conflict.
from learn-katacoda.
@GrahamDumpleton ok, then. You have convinced me.
from learn-katacoda.
Seems stale, please re-open if it persists.
from learn-katacoda.
Related Issues (20)
- Everything is broken
- Kubernetes / Openshift Basics Workshop - October 21st - 11AM to 3PM UTC
- Failed to create Kafka cluster
- Apache Kafka with Reactive Messaging: Workshop is incomplete and consequently doesnt work
- Errors running Container Tutorials HOT 2
- Interactive Container Registries: WARN[0000] Conmon at /usr/bin/conmon invalid: outdated conmon version
- Deploying a Jupyter Notebook Image - Not working HOT 1
- docker rate limit hit on first time through k8s-api-fundamentals
- toomanyrequests: You have reached your pull rate limit @ https://www.docker.com/increase-rate-limit
- Cluster 4.5 and 4.7 not healthy
- Linux Container Internals 2.0 - Lab 2: Container Images: podman does not work because the version of conmon and runc are too old HOT 4
- Error: please update to v2.0.24 or later: outdated conmon version
- In LAB 1: Introduction to Containers, Terminal states with red text: Error Details: Environment not starting correctly. HOT 1
- Partner Dev Team Workshop - Nov 25, 13:00-17:00 HOT 5
- Error messages in LAB: Container Images
- Linux Container Internals 2.0 - Lab 1: Introduction to Containers
- Link to Jager portal is not working
- Blank screen on Interactive Learning Portal
- Exercises not starting up on Chrome Web Browser HOT 2
- url typo https://github.com/openshift/pipeliness-vote-ui
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-katacoda.