Commit 127ca8ce by tingweiwang

rename

1 parent 98219e47
Showing with 1121 additions and 0 deletions
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: core--collector
namespace: autodl
spec:
template:
metadata:
labels:
app: core--collector
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
containers:
- name: core--collector
image: DOCKER_REGISTRY/core--collector:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /mnt/ceph
name: adl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: hostname
mountPath: /etc/autocnn_hostname
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
command: ["core--collector"]
ports:
- containerPort: 8080
name: ccport-8080
livenessProbe:
httpGet:
path: /health
port: ccport-8080
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: hostname
hostPath:
path: /etc/hostname
- name: config
configMap:
name: cfg-autodl-core
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: core--monitor
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: core--monitor
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- name: core--monitor
image: DOCKER_REGISTRY/adl-core-v1: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: ["core--monitor"]
ports:
- containerPort: 8080
name: cmport-8080
livenessProbe:
httpGet:
path: /health
port: cmport-8080
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-autodl-core
apiVersion: v1
kind: Service
metadata:
name: core--nginx-svc
namespace: autodl
spec:
type: NodePort
selector:
app: core--nginx
ports:
- port: 80
name: port-80
targetPort: 80
nodePort: 30099
\ No newline at end of file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: core--nginx
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: core--nginx
spec:
nodeSelector:
internal_service_node: "true"
containers:
- name: core--nginx
image: DOCKER_REGISTRY/core--nginx:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
ports:
- containerPort: 80
name: port-80
livenessProbe:
tcpSocket:
port: port-80
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "500m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-core-nginx
items:
- key: apiserver.conf
path: default.conf
- key: nginx.conf
path: nginx.conf
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: core--server
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: core--server
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- name: core--server
image: DOCKER_REGISTRY/adl-core-v1: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: ["core--server"]
ports:
- containerPort: 30100
name: port-30100
livenessProbe:
tcpSocket:
port: port-30100
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-autodl-core
apiVersion: v1
kind: Service
metadata:
labels:
app: core--server
name: core--server
namespace: autodl
spec:
type: NodePort
selector:
app: core--server
ports:
- port: 30100
name: port-30100
targetPort: 30100
nodePort: 30100
\ No newline at end of file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: core--worker
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: core--worker
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- name: core--worker
image: DOCKER_REGISTRY/adl-core-v1: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: ["core--worker"]
ports:
- containerPort: 8080
name: cwport-8080
livenessProbe:
httpGet:
path: /health
port: cwport-8080
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-autodl-core
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
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: kpl--frontend
namespace: kpl
spec:
type: NodePort
selector:
app: kpl--frontend
ports:
- port: 80
name: port-80
targetPort: 80
nodePort: 30180
- port: 81
name: port-81
targetPort: 81
nodePort: 30181
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--frontend
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--frontend
spec:
imagePullSecrets:
- name: "harbor-secret"
nodeSelector:
internal_service_node: "true"
containers:
- name: kpl--frontend
image: DOCKER_REGISTRY/kpl--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
- containerPort: 81
name: port-81
livenessProbe:
tcpSocket:
port: port-80
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-kpl-frontend
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:
httpGet:
path: /health
port: port-8921
scheme: HTTP
resources:
requests:
cpu: "500m"
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:
tcpSocket:
port: port-8922
resources:
requests:
cpu: "500m"
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
\ No newline at end of file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--monitor
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--monitor
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--monitor
image: DOCKER_REGISTRY/kpl-backend-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: ["kpl--monitor"]
ports:
- containerPort: 8920
name: port-8920
livenessProbe:
httpGet:
path: /health
port: port-8920
scheme: HTTP
resources:
requests:
cpu: "500m"
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--monitor
name: kpl--monitor
namespace: kpl
spec:
selector:
app: kpl--monitor
ports:
- port: 8920
name: port-8920
targetPort: 8920
apiVersion: v1
kind: Service
metadata:
name: kpl--nginx-svc
namespace: kpl
spec:
type: NodePort
selector:
app: kpl--nginx
ports:
- port: 80
name: port-80
targetPort: 80
nodePort: 30200
- 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
\ No newline at end of file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--nginx
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--nginx
spec:
imagePullSecrets:
- name: "harbor-secret"
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--nginx
image: DOCKER_REGISTRY/kpl--nginx:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: config
mountPath: /etc/nginx/conf.d/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:
- containerPort: 80
name: port-80
- containerPort: 81
name: port-81
- containerPort: 82
name: port-82
- containerPort: 443
name: port-443
livenessProbe:
tcpSocket:
port: port-80
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "500m"
memory: "1024Mi"
volumes:
- name: config
configMap:
name: cfg-kpl-nginx
items:
- key: apiserver.conf
path: default.conf
- key: deployproxy.conf
path: deploy.conf
- key: imageproxy.conf
path: imageproxy.conf
- key: nginx.conf
path: nginx.conf
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--backend
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--backend
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--backend
image: DOCKER_REGISTRY/kpl-backend-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: ["kpl--backend"]
ports:
- containerPort: 8919
name: port-8919
livenessProbe:
httpGet:
path: /health
port: port-8919
scheme: HTTP
resources:
requests:
cpu: "1000m"
memory: "1024Mi"
limits:
cpu: "6000m"
memory: "8Gi"
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--backend
name: kpl--backend
namespace: kpl
spec:
selector:
app: kpl--backend
ports:
- port: 8919
name: port-8919
targetPort: 8919
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--worker
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--worker
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--worker
image: DOCKER_REGISTRY/kpl-backend-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: ["bash", "-c"]
ports:
- containerPort: 8080
name: wport-8080
livenessProbe:
httpGet:
path: /health
port: wport-8080
scheme: HTTP
args: ["kpl--script && kpl--worker"]
resources:
requests:
cpu: "500m"
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: extensions/v1beta1
kind: Deployment
metadata:
name: kpl--workspace-worker
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: kpl--workspace-worker
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: kpl-serviceaccount
nodeSelector:
kpl: "true"
internal_service_node: "true"
containers:
- name: kpl--workspace-worker
image: DOCKER_REGISTRY/kpl-backend-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: ["kpl--workspace-worker"]
ports:
- containerPort: 8080
name: wwport-8080
livenessProbe:
httpGet:
path: /health
port: wwport-8080
scheme: HTTP
resources:
requests:
cpu: "500m"
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!