数据库脚本修复,添加私服
This commit is contained in:
75
manifests/deployment.yaml
Normal file
75
manifests/deployment.yaml
Normal file
@@ -0,0 +1,75 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: cms
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: harbor-login
|
||||
namespace: cms
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
data:
|
||||
.dockerconfigjson: ewoJImF1dGhzIjogewoJCSJoYXJib3IuZmp5ODAxOC50b3A6ODg4MyI6IHsKCQkJImF1dGgiOiAiYXpoek9rczRjMmhoY21KdmNnPT0iCgkJfQoJfQp9
|
||||
|
||||
---
|
||||
|
||||
#deploy
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cms
|
||||
namespace: cms
|
||||
labels:
|
||||
app: cms
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cms
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cms
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-login
|
||||
containers:
|
||||
- name: cms
|
||||
image: __IMAGE_SLUG__:__IMAGE_VERSION_SLUG__
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
---
|
||||
#service
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cms
|
||||
namespace: cms
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: cms
|
||||
type: ClusterIP
|
||||
|
||||
---
|
||||
#ingress
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: cms
|
||||
namespace: cms
|
||||
spec:
|
||||
rules:
|
||||
- host: cotton.fjy8018.xin
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: cms
|
||||
servicePort: 80
|
||||
Reference in New Issue
Block a user