You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
apiVersion: v1
kind: Service
metadata:
name: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
namespace: $K8S_DEPLOY_PARAM_CURR_K8S_NAMESPACE
spec:
selector:
app: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80
- name: https
port: 443
protocol: TCP
targetPort: 443
- name: tcp
port: 81
protocol: TCP
targetPort: 81
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
namespace: $K8S_DEPLOY_PARAM_CURR_K8S_NAMESPACE
spec:
selector:
matchLabels:
app: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
replicas: 1
template:
metadata:
namespace: $K8S_DEPLOY_PARAM_CURR_K8S_NAMESPACE
labels:
app: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
spec:
imagePullSecrets:
- name: aliyun-acr-secret
containers:
- env:
- name: aliyun_logs_log-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
value: stdout
name: $K8S_DEPLOY_PARAM_CURR_MODEL_NAME-$K8S_DEPLOY_PARAM_RESOURCE_SUFFIX
image: $K8S_DEPLOY_PARAM_ARC_PREFIX/$K8S_DEPLOY_PARAM_CURR_MODEL_NAME:$K8S_DEPLOY_PARAM_IMAGE_TAG
imagePullPolicy: Always
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
- containerPort: 81
name: rpc
protocol: TCP
volumeMounts:
- mountPath: /etc/localtime
name: tz-config
volumes:
- hostPath:
path: /etc/localtime
type: ""
name: tz-config
|