Commit 97d374a3 by tingweiwang

update

0 parents
Showing with 62 additions and 0 deletions
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: devpi
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: devpi
spec:
serviceAccountName: autodl-serviceaccount
nodeSelector:
gpu: "true"
containers:
- name: devpi
image: hub.kce.ksyun.com/kpl_k8s/k8s-devpi:v2
env:
- name: DEVPI_PASSWORD
value: "seetatech"
imagePullPolicy: Always
volumeMounts:
- mountPath: /data
name: data-volume
- mountPath: /etc/hosts
name: hosts-volume
ports:
- containerPort: 3141
name: port-3141
resources:
requests:
cpu: "100m"
memory: "512Mi"
limits:
cpu: "2000m"
memory: "2024Mi"
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: adl-pvc
readOnly: false
- name: hosts-volume
hostPath:
path: /etc/hosts
apiVersion: v1
kind: Service
metadata:
name: devpi
namespace: autodl
labels:
app: devpi
spec:
type: NodePort
ports:
- name: http
port: 80
targetPort: 3141
nodePort: 33141
selector:
app: devpi
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!