aim-proxy/deployment.yaml

41 lines
747 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: apps/v1
kind: Deployment
metadata:
name: aim-proxy
namespace: argo
labels:
app: aim-proxy
spec:
replicas: 1
selector:
matchLabels:
app: aim-proxy
template:
metadata:
labels:
app: aim-proxy
spec:
containers:
- name: aim-proxy
image: 172.20.32.187/pipeline-service/aim-proxy:$(date "+%Y%m%d%H%M%S")
ports:
- containerPort: 7123
---
apiVersion: v1
kind: Service
metadata:
name: aim-proxy
namespace: argo
labels:
app: aim-proxy
spec:
type: NodePort
selector:
app: aim-proxy
ports:
- protocol: TCP
port: 7123
targetPort: 7123
nodePort: 30123 # 这里可以是30000到32767之间的任意值确保没有冲突