Comments (4)
I'm sorry, but I haven't tested running wolf on k8s yet, since I haven't used k8s before.
But as I see above, there may be a problem with the command (based on docker-compose experience), try changing the command to something like this:
command: ["npm", "run", "start"]
from wolf.
I tried it but the problem still exists, It seems that there is nothing wrong with the configuration file, I will try to find other ways.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 53s default-scheduler Successfully assigned wolf/wolf-server-tj7ogt-78b454dcf9-n9pnj to node06
Warning BackOff 23s (x2 over 50s) kubelet, node06 Back-off restarting failed container
Normal Pulled 10s (x4 over 52s) kubelet, node06 Container image "igeeky/wolf-server" already present on machine
Normal Created 10s (x4 over 52s) kubelet, node06 Created container wolf-server
Warning Failed 10s (x4 over 51s) kubelet, node06 Error: failed to start container "wolf-server": Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"[\\\"npm\\\", \\\"run\\\", \\\"start\\\"]\": executable file not found in $PATH": unknown
from wolf.
You can refer to the following documentation:
https://unofficial-kubernetes.readthedocs.io/en/latest/concepts/configuration/container-command-args/
Using command with args. like this:
command: ["npm"]
args: ["run", "start"]
from wolf.
Perfect solution! I deployed it like this, the service can be started.
spec:
containers:
- name: container-06s18q
image: igeeky/wolf-server
command:
- npm
args:
- run
- start
ports:
- name: http-10080
containerPort: 10080
protocol: TCP
env:
- name: RBAC_ROOT_PASSWORD
value: wolf-123456
- name: RBAC_TOKEN_KEY
value: f40215a5f25cbb6d36df07629aaf1172240fe48d
- name: WOLF_CRYPT_KEY
value: fbd4962351924792cb5e5b131435cd30b24e3570
- name: RBAC_SQL_URL
value: 'postgres://root:123456@wolf-database:5432/wolf'
- name: CLIENT_CHANGE_PWD
value: 'no'
Thanks for your help
@iGeeky
from wolf.
Related Issues (20)
- 是否适用于生产 HOT 2
- Build a user chat group,for user communication HOT 1
- wolf console run npm install given error HOT 1
- limit 256 HOT 2
- External directory (e.g. OpenLDAP/AD/JumpCloud) integration? HOT 1
- 是否考虑支持角色之间的权限继承? HOT 1
- restapi HOT 2
- restapi-角色权限 HOT 3
- wolf-console-limit HOT 3
- 能支持多租户吗 HOT 1
- 资源或者权限能否限制到host? HOT 3
- how about the stress resistance when used with apisix gateway HOT 2
- 启用redis cache连接失败 HOT 1
- auth_type可否扩展签名认证方式
- user role assignment on wolf dashboard? HOT 1
- 不启动redis cache的情况下,wolf-cache被指向redis, 登录接口超时 HOT 3
- 管理接口能提供按用户名获取用户信息的功能么? HOT 1
- The dashboard login need add human vaild ban the bot HOT 3
- wolf-server connect redis error HOT 2
- 问题:是否能只用API权限验证功能,而不用wolf的用户登录功能 HOT 1
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 wolf.