You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
902 B
YAML
47 lines
902 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: unaryproxy
|
|
namespace: kevin
|
|
spec:
|
|
selector:
|
|
app: unaryproxy
|
|
ports:
|
|
- name: unaryproxy-port
|
|
port: 3456
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: unaryproxy-deployment
|
|
namespace: kevin
|
|
labels:
|
|
app: unaryproxy
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: unaryproxy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: unaryproxy
|
|
spec:
|
|
containers:
|
|
- name: unaryproxy
|
|
image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/unaryproxy:v1
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3456
|
|
volumeMounts:
|
|
- name: timezone
|
|
mountPath: /etc/localtime
|
|
imagePullSecrets:
|
|
- name: aliyun
|
|
volumes:
|
|
- name: timezone
|
|
hostPath:
|
|
path: /usr/share/zoneinfo/Asia/Shanghai
|