当前位置:网站首页>Kubeflow create new user password
Kubeflow create new user password
2022-04-23 00:34:00 【Rory602】
1. establish Profile, profile.yaml
apiVersion: kubeflow.org/v1beta1
kind: Profile
metadata:
name: wangzy-p # replace with the name of profile you want, this will be user's namespace name
spec:
owner:
kind: User
name: wangzy-[email protected] # replace with the email of the user
establish Profile kubectl apply -f profile.yaml
2. Generate user password
(base) user@master:~/code/k8s$ python3 -c 'from passlib.hash import bcrypt; import getpass; print(bcrypt.using(rounds=12, ident="2y").hash(getpass.getpass()))'
Password:
$2y$12$2dTgxsqJrF11DRgcneqtROIGovcETM0OQTi58MAU2iRv2ORiGBowW
3. Configure user password
kubectl get configmap dex -n auth -o jsonpath='{.data.config\.yaml}' > dex-yaml.yaml
Add user information
- email: wangzy-[email protected]
hash: $2y$12$2dTgxsqJrF11DRgcneqtROIGovcETM0OQTi58MAU2iRv2ORiGBowW
# https://github.com/dexidp/dex/pull/1601/commits
# FIXME: Use hashFromEnv instead
username: wangzy-p
After adding
root@unode1:~# cat dex-yaml.yaml
issuer: http://dex.auth.svc.cluster.local:5556/dex
storage:
type: kubernetes
config:
inCluster: true
web:
http: 0.0.0.0:5556
logger:
level: "debug"
format: text
oauth2:
skipApprovalScreen: true
enablePasswordDB: true
staticPasswords:
- email: [email protected]
hash: $2y$12$QfGyJbAwffkwUPG.VCKXEudTN2z1Fdrkva8Mg7YGkCPdMfSjk9H5i
# https://github.com/dexidp/dex/pull/1601/commits
# FIXME: Use hashFromEnv instead
username: user
userID: "15841185641784"
- email: [email protected]
hash: $2y$12$2dTgxsqJrF11DRgcneqtROIGovcETM0OQTi58MAU2iRv2ORiGBowW
username: wangzy-p
staticClients:
# https://github.com/dexidp/dex/pull/1664
- idEnv: OIDC_CLIENT_ID
redirectURIs: ["/login/oidc"]
name: 'Dex Login Application'
secretEnv: OIDC_CLIENT_SECRET
4. to update config.yaml And restart deployment
kubectl create configmap dex --from-file=config.yaml=dex-yaml.yaml -n auth --dry-run=client -o yaml | kubectl apply -f -
kubectl rollout restart deployment dex -n auth
版权声明
本文为[Rory602]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222149432380.html
边栏推荐
- CAS unified identity authentication (II): overlay configuration management
- 市场格局进入重构期,ESP频繁「召回」,中国供应商「乘势而上」
- 深度学习基础学习-RNN与LTSM
- (transfer) SSH login configuration and file transfer
- [AI vision · quick review of today's sound acoustic papers, issue 4] Thu, 21 APR 2022
- Communication error between Willem touch screen and Beifu PLC adsparsesymbol invalid array index
- Differences of lake water color, water environment and hydrological remote sensing
- Solution for error reporting of biff el6631 and Siemens communication PROFINET
- ArcGIS 城市生活区用地适宜性评价(五)
- MySQL -- data type
猜你喜欢

Static and dynamic control nixie tube

ArcGIS 地表TIN面数据的符号化

CAS unified identity authentication (II): overlay configuration management

ArcMAP 空间连接和相交工具使用

while (n-- > 0) 的用法

Linear basis (various templates + examples)

CAS unified identity authentication (III): external independent configuration

接口文档生成工具ApiPost 绝了

cluster_ ACC calculation

(transfer) matlab r2014a 64 bit and mex related problems of visual studio 2015
随机推荐
ArcMAP 空间连接和相交工具使用
MySQL -- operation of database
Research Progress on remote sensing of vegetation phenological parameters (good article sharing)
ArcGIS 地表TIN面数据的符号化
ArcGIS 城市生活区用地适宜性评价(二)
L2-023 图着色问题 (25 分)
Luogu p2241 statistical square
Ten years of working at Google is also a happy decade for me
Difference between Beifu twincat1260 and tf5010 authorization
El2124 module wiring and pin meaning
L2-012 关于堆的判断 (25 分)(字符串bug待解决)
repeat_ String delete some characters
js -对连续月份数据做处理拆分
【图像分类】用最简短的代码复现SeNet,小白一定要收藏(keras,Tensorflow2.x)
智能无线传输模组,CV5200助力无人机mesh组网,无线通信传输方案
深度学习基础学习-RNN与LTSM
C#/.Net 使用QuestPDF操作生成PDF更快更高效!
Configuration parameters of common product module models of Beifu
ArcGIS urban living area land suitability evaluation (II)
c#可变参数params的介绍