1 Star 0 Fork 1

deep/JenkinsDemo

forked from LiuShihao/JenkinsDemo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hello_deploy.yaml 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
LiuShihao 提交于 2023-02-19 23:47 . update
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: test
name: hello-deploy
labels:
app: hello-deploy
spec:
replicas: 1
selector:
matchLabels:
app: hello-deploy
template:
metadata:
labels:
app: hello-deploy
spec:
containers:
- name: hello-deploy
image: 192.168.153.131:80/helloworld/hello-world:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
namespace: test
labels:
app: hello-deploy
name: hello-deploy
spec:
selector:
app: hello-deploy
ports:
- port: 8088
targetPort: 8080
type: NodePort
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: test
name: hello-deploy
spec:
ingressClassName: ingress
rules:
- host: hello.world.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hello-deploy
port:
number: 8088
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/deepbmw/jenkins-demo.git
git@gitee.com:deepbmw/jenkins-demo.git
deepbmw
jenkins-demo
JenkinsDemo
master

搜索帮助