Changed piston UI
This commit is contained in:
@@ -11,6 +11,24 @@ metadata:
|
||||
namespace: piston
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: piston-config
|
||||
namespace: piston
|
||||
data:
|
||||
piston.domain: "piston.khongisa.co.za"
|
||||
piston.rooturl: "https://piston.khongisa.co.za"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: piston-ui-secret
|
||||
namespace: piston
|
||||
type: Opaque
|
||||
data:
|
||||
password: QmxhY2tzdGFyMkBob21l
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: piston-pvc
|
||||
@@ -61,19 +79,25 @@ spec:
|
||||
cpu: "1"
|
||||
memory: "2Gi"
|
||||
- name: ui
|
||||
image: m9sweeper/piston-admin:latest
|
||||
image: codercom/code-server:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
env:
|
||||
- name: PISTON_URL
|
||||
value: "http://localhost:2000"
|
||||
- containerPort: 8080
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
memory: "1Gi"
|
||||
limits:
|
||||
cpu: "250m"
|
||||
memory: "256Mi"
|
||||
cpu: "1"
|
||||
memory: "2Gi"
|
||||
env:
|
||||
- name: PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: piston-ui-secret
|
||||
key: password
|
||||
volumeMounts:
|
||||
- name: packages
|
||||
mountPath: /home/coder/project
|
||||
volumes:
|
||||
- name: packages
|
||||
persistentVolumeClaim:
|
||||
@@ -92,5 +116,5 @@ spec:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
nodePort: 31003
|
||||
|
||||
Reference in New Issue
Block a user