Commit d4ff5ea5 by tingweiwang

更新各个组件k8s yaml

1 parent 2c8e7376
Showing with 78 additions and 6 deletions
......@@ -39,7 +39,7 @@ spec:
scheme: HTTP
resources:
requests:
cpu: "500m"
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
......
......@@ -29,6 +29,9 @@ spec:
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
- mountPath: /etc/kpl/ssl
name: kpl-ssl
readOnly: true
command: ["core--monitor"]
ports:
- containerPort: 8080
......@@ -40,7 +43,7 @@ spec:
scheme: HTTP
resources:
requests:
cpu: "500m"
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
......@@ -50,6 +53,10 @@ spec:
persistentVolumeClaim:
claimName: adl-pvc
readOnly: false
- configMap:
defaultMode: 420
name: kpl-ssl
name: kpl-ssl
- name: docker-sock
hostPath:
path: /var/run/
......
......@@ -10,6 +10,8 @@ spec:
labels:
app: core--nginx
spec:
imagePullSecrets:
- name: "harbor-secret"
nodeSelector:
internal_service_node: "true"
containers:
......
......@@ -38,7 +38,7 @@ spec:
port: port-30100
resources:
requests:
cpu: "500m"
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
......
......@@ -31,6 +31,9 @@ spec:
subPath: app.yaml
- name: config-harbor-secret
mountPath: /root/.docker/
- mountPath: /etc/kpl/ssl
name: kpl-ssl
readOnly: true
command: ["core--worker"]
ports:
- containerPort: 8080
......@@ -42,11 +45,11 @@ spec:
scheme: HTTP
resources:
requests:
cpu: "500m"
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
memory: "3Gi"
volumes:
- name: adl-volume
persistentVolumeClaim:
......@@ -58,6 +61,10 @@ spec:
- name: config
configMap:
name: cfg-autodl-core
- configMap:
defaultMode: 420
name: kpl-ssl
name: kpl-ssl
- name: config-harbor-secret
secret:
secretName: harbor-secret
......@@ -66,4 +73,3 @@ spec:
path: config.json
mode: 0644
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!