77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cctp-platform
|
|
namespace: cctp
|
|
spec:
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
selector:
|
|
k8s-app: cctp-platform
|
|
type: ClusterIP
|
|
|
|
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress-cctp-platform
|
|
namespace: cctp
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
spec:
|
|
rules:
|
|
- host: platform.cctp.dev.northking.net
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: cctp-platform
|
|
servicePort: 80
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: cctp-platform
|
|
namespace: cctp
|
|
labels:
|
|
k8s-app: cctp-platform
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: cctp-platform
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: cctp-platform
|
|
spec:
|
|
dnsConfig:
|
|
options:
|
|
- name: ndots
|
|
value: '3'
|
|
containers:
|
|
- name: cctp-platform
|
|
image: 'harbor.k8s.dev.northking.net/gzrdc/cctp-platform:3.0-SNAPSHOT'
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: APP_PROFILE
|
|
value: dev
|
|
- name: SERVER_PORT
|
|
value: "80"
|
|
- name: NACOS_NAMESPACE
|
|
value: dev
|
|
- name: NACOS_CLIENT_HOST
|
|
value: platform.cctp.dev.northking.net
|
|
- name: NACOS_CLIENT_PORT
|
|
value: "80"
|
|
- name: NACOS_SERVER_URL
|
|
value: nacos-headless.cctp.svc.cluster.local:8848
|
|
ports:
|
|
- containerPort: 80
|
|
protocol: TCP
|
|
imagePullSecrets:
|
|
- name: harbor-k8s-dev-secret
|