Commit 79b7c391 by wangtingwei

fix

1 parent 2cbb4824
apiVersion: v1 wapiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: kpl--frontend name: kpl--frontend
namespace: kpl namespace: kpl
spec: spec:
type: NodePort
selector: selector:
app: kpl--frontend app: kpl--frontend
ports: ports:
- port: 80 - port: 80
name: port-80 name: port-80
targetPort: 80 targetPort: 80
nodePort: 30180
- port: 81
name: port-81
targetPort: 81
nodePort: 30181
- port: 82
name: port-82
targetPort: 82
nodePort: 30182
...@@ -25,10 +25,6 @@ spec: ...@@ -25,10 +25,6 @@ spec:
ports: ports:
- containerPort: 80 - containerPort: 80
name: port-80 name: port-80
- containerPort: 81
name: port-81
- containerPort: 82
name: port-82
livenessProbe: livenessProbe:
tcpSocket: tcpSocket:
port: port-80 port: port-80
......
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--deploy
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--deploy
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--deploy
image: DOCKER_REGISTRY/kpl-backend-v1:latest
imagePullPolicy: Always
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["kpl--deploy"]
ports:
- containerPort: 8921
name: port-8921
livenessProbe:
initialDelaySeconds: 10
httpGet:
path: /health
port: port-8921
scheme: HTTP
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: docker-sock
hostPath:
path: /var/run/
- name: config
configMap:
name: cfg-kpl-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: kpl--deploy
name: kpl--deploy
namespace: kpl
spec:
selector:
app: kpl--deploy
ports:
- port: 8921
name: port-8921
targetPort: 8921
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--image-proxy
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--image-proxy
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--image-proxy
image: DOCKER_REGISTRY/image-proxy-v1:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /mnt/ceph
name: kpl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["/app/imageproxy"]
args: ["-addr", "0.0.0.0:8922", "-verbose"]
ports:
- containerPort: 8922
name: port-8922
livenessProbe:
initialDelaySeconds: 10
tcpSocket:
port: port-8922
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: kpl-volume
persistentVolumeClaim:
claimName: kpl-pvc
readOnly: false
- name: docker-sock
hostPath:
path: /var/run/
- name: config
configMap:
name: cfg-kpl-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: kpl--image-proxy
name: kpl--image-proxy
namespace: kpl
spec:
selector:
app: kpl--image-proxy
ports:
- port: 8922
name: port-8922
targetPort: 8922
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--manager
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--manager
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--manager
image: DOCKER_REGISTRY/kpl-manager-v1:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["kpl--manager"]
ports:
- containerPort: 8080
name: port-8080
resources:
requests:
cpu: "300m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-kpl-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: kpl--manager
name: kpl--manager
namespace: kpl
spec:
type: NodePort
selector:
app: kpl--manager
ports:
- port: 8080
name: port-8080
targetPort: 8080
nodePort: 30305
...@@ -11,16 +11,4 @@ spec: ...@@ -11,16 +11,4 @@ spec:
- port: 80 - port: 80
name: port-80 name: port-80
targetPort: 80 targetPort: 80
nodePort: 30200 nodePort: 30180
- port: 81
name: port-81
targetPort: 81
nodePort: 30201
- port: 82
name: port-82
targetPort: 82
nodePort: 30202
- port: 443
name: port-443
targetPort: 443
nodePort: 30443
...@@ -26,12 +26,6 @@ spec: ...@@ -26,12 +26,6 @@ spec:
- name: config - name: config
mountPath: /etc/nginx/conf.d/default.conf mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf subPath: default.conf
- name: config
mountPath: /etc/nginx/conf.d/deploy.conf
subPath: deploy.conf
- name: config
mountPath: /etc/nginx/conf.d/imageproxy.conf
subPath: imageproxy.conf
ports: ports:
- containerPort: 80 - containerPort: 80
name: port-80 name: port-80
...@@ -59,10 +53,6 @@ spec: ...@@ -59,10 +53,6 @@ spec:
items: items:
- key: apiserver.conf - key: apiserver.conf
path: default.conf path: default.conf
- key: deployproxy.conf
path: deploy.conf
- key: imageproxy.conf
path: imageproxy.conf
- key: nginx.conf - key: nginx.conf
path: nginx.conf path: nginx.conf
apiVersion: v1
kind: Service
metadata:
name: user-center--nginx-svc
namespace: autodl
spec:
type: NodePort
selector:
app: user-center--nginx
ports:
- port: 30300
name: port-30300
targetPort: 30300
nodePort: 30300
- port: 30302
name: port-30302
targetPort: 30302
nodePort: 30302
\ No newline at end of file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: user-center--nginx
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: user-center--nginx
spec:
imagePullSecrets:
- name: "harbor-secret"
nodeSelector:
internal_service_node: "true"
containers:
- name: user-center--nginx
image: DOCKER_REGISTRY/user-center--nginx:latest
imagePullPolicy: Always
ports:
- containerPort: 30300
name: port-30300
- containerPort: 30302
name: port-30302
livenessProbe:
tcpSocket:
port: port-30300
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "500m"
memory: "1024Mi"
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: user-center--rpc-server
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: user-center--rpc-server
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- name: user-center--rpc-server
image: DOCKER_REGISTRY/user-center--backend:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /mnt/ceph
name: adl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["user-center--rpc-server"]
ports:
- containerPort: 10000
name: port-10000
- containerPort: 10001
name: port-10001
livenessProbe:
tcpSocket:
port: port-10001
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: adl-volume
persistentVolumeClaim:
claimName: adl-pvc
readOnly: false
- name: docker-sock
hostPath:
path: /var/run/
- name: config
configMap:
name: cfg-user-center-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: user-center--rpc-server
name: user-center--rpc-server
namespace: autodl
spec:
type: NodePort
selector:
app: user-center--rpc-server
ports:
- port: 10001
name: port-10001
targetPort: 10001
nodePort: 30301
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: user-center--backend
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: user-center--backend
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- name: user-center--backend
image: DOCKER_REGISTRY/user-center--backend:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /mnt/ceph
name: adl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["user-center--backend"]
ports:
- containerPort: 10000
name: port-10000
livenessProbe:
httpGet:
path: /health
port: port-10000
scheme: HTTP
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: adl-volume
persistentVolumeClaim:
claimName: adl-pvc
readOnly: false
- name: docker-sock
hostPath:
path: /var/run/
- name: config
configMap:
name: cfg-user-center-backend
apiVersion: v1
kind: Service
metadata:
labels:
app: user-center--backend
name: user-center--backend
namespace: autodl
spec:
selector:
app: user-center--backend
ports:
- port: 10000
name: port-10000
targetPort: 10000
apiVersion: v1
kind: Service
metadata:
name: user-center--frontend
namespace: autodl
spec:
selector:
app: user-center--frontend
ports:
- port: 80
name: port-80
targetPort: 80
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: user-center--frontend
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: user-center--frontend
spec:
imagePullSecrets:
- name: "harbor-secret"
nodeSelector:
internal_service_node: "true"
containers:
- name: user-center--frontend
image: DOCKER_REGISTRY/user-center--frontend:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /usr/share/nginx/html/production-base.js
subPath: production-base.js
ports:
- containerPort: 80
name: port-80
livenessProbe:
tcpSocket:
port: port-80
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-user-center-frontend
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!