The Rancher UI
Go to file
Westly Wright d35b83c85c
hide preview yaml button on edit
rancher/dashboard#966
2020-08-25 09:50:50 -07:00
.storybook move presets for storybook to addons 2020-06-03 10:49:36 -07:00
.vscode Support git repos, server no longer has namespaced repos 2020-08-10 15:58:55 -07:00
assets Add Yaml Preview to Chart Install 2020-08-25 09:50:50 -07:00
chart fix default retention size monitoring 2020-08-19 09:29:55 -07:00
components hide preview yaml button on edit 2020-08-25 09:50:50 -07:00
config Merge pull request #1077 from vincent99/master 2020-08-24 13:41:44 -07:00
detail Updating ConfigMap to make use of CruResource 2020-08-17 13:00:17 -07:00
edit Merge pull request #1055 from mantis-toboggan-md/workload-storage 2020-08-24 13:47:35 -07:00
layouts Basic questions support 2020-08-21 03:17:28 -07:00
list Catalog bug fixes 2020-08-11 16:08:06 -07:00
middleware Basic questions support 2020-08-21 03:17:28 -07:00
mixins Updating how we filter labels and annotations 2020-08-20 11:47:58 -07:00
models pr feedback 2020-08-20 13:28:32 -07:00
pages Fix preview yaml button visibility during tab sel 2020-08-25 09:50:50 -07:00
plugins Apply query should not replace the hash if exists 2020-08-25 09:50:50 -07:00
scripts Cache clean script 2020-07-27 19:11:23 -07:00
server Enabling no-console rule for eslint 2020-04-24 10:37:10 -07:00
static favicon 502 2020-04-22 10:08:59 -07:00
store Header cleanup, ECM -> Cluster Manager 2020-08-21 03:15:58 -07:00
stories story error 2020-06-03 10:46:01 -07:00
test Selector matching 2020-08-24 13:35:57 -07:00
utils during create yaml dont parse undefinied values 2020-08-25 09:50:50 -07:00
.ackrc Remove vue-native-websocket, use socket per norman client, typescript support 2019-12-18 17:20:14 -07:00
.dockerignore Service Networking and HealthCheck 2019-10-23 16:10:18 -07:00
.drone.yml Build embedded versions 2020-08-09 16:41:18 -07:00
.eslintignore Support hidden chart annotation 2020-07-31 20:01:28 -07:00
.eslintrc.js multiline-ternary: never 2020-06-04 16:22:48 -07:00
.gitignore Cluster dashboard overview feedback 2020-04-02 11:17:22 -07:00
Dockerfile Yes dapper 2019-09-04 15:29:31 -07:00
Dockerfile.dev Project picker/filter, standalone steve 2020-03-17 23:07:33 -07:00
LICENSE License 2019-12-31 15:21:43 -07:00
README.md doc: fix doc mistake 2020-08-12 14:23:26 +08:00
babel.config.js Remove vue-native-websocket, use socket per norman client, typescript support 2019-12-18 17:20:14 -07:00
jsconfig.json Better standaone Steve support 2020-03-07 03:42:40 -07:00
nuxt.config.js Upgrade 2020-08-06 15:58:29 -07:00
package.json Start questions support 2020-08-21 03:15:57 -07:00
yarn.lock Start questions support 2020-08-21 03:15:57 -07:00

README.md

dashboard

Build Status

Dashboard UI. For the other Rancher UI see rancher/ui.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at https://localhost:8005
# using the endpoint for your Steve (or Rancher) API
$ API=http://localhost:8989 yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate

Multiple GitHub auth configs

Auth supports multiple GitHub auth URLs and using the appropriate one based on the Host header that a request comes in on. This is particularly useful for development against a server that already has GitHub setup.

In management.cattle.io.authconfig, edit the github entry. Add a hostnameToClientId map of Host header value -> GitHub client ID:

hostnameToClientId:
  "localhost:8005": <your GitHub Client ID for localhost:8005>

In the secret, namespace cattle-global-data, edit githubconfig-clientsecret. Add GitHub client ID -> base64-encoded client secret to the data section:

data:
  clientsecret: <the normal client secret already configured>
  <your client id>: <your base64-encoded client secret for localhost:8005>

Running with standalone Steve on a Mac

cd steve
make run-host

cd dashboard
docker build -f Dockerfile.dev -t rancherlabs/dashboard:dev
docker run -v $(pwd):/src \
  -v dashboard_node:/src/node_modules \
  -p 8005:8005 \
  -e API=http://172.17.0.1:8989 \
  rancherlabs/dashboard:dev

# The first time will take forever installing node_modules into the volume; it will be faster next time.
#
# Goto https://localhost:8005

Creating a Steve user

Steve does not currently create any default user to login to when it is first run. Use kubectl to apply this to create an admin/admin user:

---
apiVersion: management.cattle.io/v3
kind: User
metadata:
  name: admin
principalIds:
  - local://admin
enabled: true
username: admin
# bcrypt hash of "admin" , or use e.g. https://bcrypt-generator.com/ to generate your own
password: $2a$10$lQpf/73orx5T3TBzbu.xNOXFgODGsR4wc39vTGc6Hbt8cdQVza.Pq
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: default-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
  kind: User
  name: admin

License

Copyright (c) 2014-2020 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.