| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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.5:9080/repo/pipeline:v7.0.0
- imagePullPolicy: Always
- ports:
- - containerPort: 8080
- ---
- apiVersion: v1
- kind: Service
- metadata:
- namespace: test
- labels:
- app: pipleline
- name: pipleline
- spec:
- selector:
- app: pipleline
- ports:
- - port: 18081
- targetPort: 8080
- type: ClusterIP
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: pipeline
- namespace: test
- spec:
- ingressClassName: traefik
- rules:
- - host: pipeline.autumn.com
- http:
- paths:
- - path: /pipeline/api/v1
- pathType: Prefix
- backend:
- service:
- name: pipleline
- port:
- number: 18081
|