当前位置:网站首页>kubevela通过CLI部署应用
kubevela通过CLI部署应用
2022-07-27 20:14:00 【学亮编程手记】
通过 CLI 也可以完成业务应用示例的部署,通过执行下述命令即可:
cat <<EOF | vela up -f -
# YAML begins
apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: webservice-app
spec:
components:
- name: frontend
type: webservice
properties:
image: oamdev/testapp:v1
cmd: ["node", "server.js"]
ports:
- port: 8080
expose: true
exposeType: LoadBalancer
cpu: "0.5"
memory: "512Mi"
traits:
- type: scaler
properties:
replicas: 1
# YAML ends
EOF
参考链接:
http://static.kubevela.net/zh/docs/v1.3/tutorials/webservice
边栏推荐
- 视频人体行为检测
- 2022/3/22 examination summary
- Here comes Gree mask! Kn95 mask only costs 5.5 yuan!
- 图论的小技巧以及扩展
- Harmonyos third operation
- 浅谈数仓的数据治理
- Quartus:Instantiation of ‘sdram_ model_ plus‘ failed. The design unit was not found.
- Shuffle, partition and read of tfrecord
- Convnext:a convnet for the 2020s - model Brief
- Deploy dolphin scheduler high availability cluster based on rainbow
猜你喜欢

浅谈数仓的数据治理

You don't know about redis. Let me explain the underlying data structure of redis in detail

Analysis of cloud native application security organization structure

你想被开除吗?来看看程序员「离职小技巧」吧

Redis网红高频面试题三连:缓存穿透?缓存击穿?缓存雪崩?

Deploy dolphin scheduler high availability cluster based on rainbow

Object creation process and object layout

Understanding and use of third-party library

浅析云原生应用安全组织架构

"The faster the code is written, the slower the program runs."
随机推荐
C language explanation series -- understanding of functions (5) function recursion and iteration
Jstack stuff
Fluorescence imaging of cle19 polypeptide in cells preparation of fluorescence quenching quantum dots of bovine serum albumin
智能家居浪潮来袭,如何让机器看懂世界 【结尾有资料】
2022/5/31考试总结
联合省选2022复习计划
2022 / 4 / 11 exam summary
2022年五大网络管理趋势
Tips and extensions of graph theory
数据仓库项目从来不是技术项目
Purple light FPGA solves the mask problem! Boost the overall speed-up of mask production
Cloudcompare & PCL point cloud equally spaced slices
20字符短域名绕过复现
The ASML lithography machine purchased by SMIC international entered the factory smoothly, but it is not a non EUV lithography machine!
Exam summary on May 31, 2022
网络开发套接字以及UDP、TCP协议
"The faster the code is written, the slower the program runs."
Deploy dolphin scheduler high availability cluster based on rainbow
细胞CLE19多肽荧光成像牛血清白蛋白荧光猝灭量子点的制备
Jeninkins offline deployment