|
@@ -0,0 +1,57 @@
|
|
|
|
|
+apiVersion: apps/v1
|
|
|
|
|
+kind: Deployment
|
|
|
|
|
+metadata:
|
|
|
|
|
+ namespace: test
|
|
|
|
|
+ name: pipleline
|
|
|
|
|
+ labels:
|
|
|
|
|
+ app: pipleline
|
|
|
|
|
+spec:
|
|
|
|
|
+ replicas: 2
|
|
|
|
|
+ selector:
|
|
|
|
|
+ matchLabels:
|
|
|
|
|
+ app: pipleline
|
|
|
|
|
+ template:
|
|
|
|
|
+ metadata:
|
|
|
|
|
+ labels:
|
|
|
|
|
+ app: pipleline
|
|
|
|
|
+ spec:
|
|
|
|
|
+ containers:
|
|
|
|
|
+ - name: pipleline
|
|
|
|
|
+ image: 192.168.0.3:9080/repo/pipeline:v5.0.0
|
|
|
|
|
+ imagePullPolicy: Always
|
|
|
|
|
+ ports:
|
|
|
|
|
+ - containerPort: 8081
|
|
|
|
|
+---
|
|
|
|
|
+apiVersion: v1
|
|
|
|
|
+kind: Service
|
|
|
|
|
+metadata:
|
|
|
|
|
+ namespace: test
|
|
|
|
|
+ labels:
|
|
|
|
|
+ app: pipleline
|
|
|
|
|
+ name: pipleline
|
|
|
|
|
+spec:
|
|
|
|
|
+ selector:
|
|
|
|
|
+ app: pipleline
|
|
|
|
|
+ ports:
|
|
|
|
|
+ - port: 18081
|
|
|
|
|
+ targetPort: 8081
|
|
|
|
|
+ type: NodePort
|
|
|
|
|
+---
|
|
|
|
|
+apiVersion: networking.k8s.io/v1
|
|
|
|
|
+kind: Ingress
|
|
|
|
|
+metadata:
|
|
|
|
|
+ namespace: test
|
|
|
|
|
+ name: pipleline
|
|
|
|
|
+spec:
|
|
|
|
|
+ ingressClassName: nginx
|
|
|
|
|
+ rules:
|
|
|
|
|
+ - host: autumn.pipleline.com
|
|
|
|
|
+ http:
|
|
|
|
|
+ paths:
|
|
|
|
|
+ - path: /
|
|
|
|
|
+ pathType: Prefix
|
|
|
|
|
+ backend:
|
|
|
|
|
+ service:
|
|
|
|
|
+ name: pipleline
|
|
|
|
|
+ port:
|
|
|
|
|
+ number: 18081
|