parent
61ef5cf46f
commit
bfaa9f2df7
@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
namespace: test
|
||||
name: pipeline
|
||||
labels:
|
||||
app: pipeline
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pipeline
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pipeline
|
||||
spec:
|
||||
containers:
|
||||
- name: pipeline
|
||||
image: registry.cn-hangzhou.aliyuncs.com/night_yy_php/pipeline:v3.0.4
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
namespace: test
|
||||
name: pipeline
|
||||
labels:
|
||||
app: pipeline
|
||||
spec:
|
||||
selector:
|
||||
app: pipeline
|
||||
ports:
|
||||
- port: 8081
|
||||
targetPort: 8080
|
||||
type: NodePort
|
||||
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
namespace: test
|
||||
name: pipeline
|
||||
spec:
|
||||
ingressClassName: ingress
|
||||
rules:
|
||||
- host: pipeline.night.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: pipeline
|
||||
port:
|
||||
number: 8081
|
Loading…
Reference in new issue