Comments (1)
已经搞定了。
- 编写application的yaml
apiVersion: apps.tanlay.com/v1
kind: Application
metadata:
name: nginx-sample
namespace: default
labels:
app: nginx
spec:
deployment:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
ports:
- containerPort: 80
service:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 30880
- 查看app
$ kubectl get app
NAME AGE
nginx-sample 10m
from advanced-kubernetes-operator.
Related Issues (14)
- 【勘误-P31】“如果读者的开发环境是amd64的Mac”中amd64应为arm64
- 【勘误-P38】PodTemplateSpec字段添加报错 HOT 8
- ubuntu22.10下,完整实现第七章代码,可以编译正常运行
- 4.2.1 in-cluster-configuration Dockerfile problem
- 书中的所有代码都在这里了吧
- what's meaning of "adppsv1 links" in controller
- 【备注-P32】kubebuilder 3.2.0和go 1.18不兼容 HOT 1
- 【勘误-P60】”4. 编译代码“ HOT 1
- 【建议】第二章 Operator开发章节开头建议添加本次开发环境信息 HOT 1
- 7.6.2节 多版本部署,v2版本创建yaml报错, v1创建正常
- P69 client-go客户端目录描述有误
- 7.4.5 过滤调谐事件Owns-Service部分代码写错了吧,UpdateFunc部分应该是Service对象,不是Application吧 HOT 1
- 2.5.7 执行make run失败
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 advanced-kubernetes-operator.