Merge pull request 'Changed piston UI' (#53) from dev into main
Reviewed-on: #53
This commit was merged in pull request #53.
This commit is contained in:
@@ -11,6 +11,24 @@ metadata:
|
|||||||
namespace: piston
|
namespace: piston
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
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
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: piston-pvc
|
name: piston-pvc
|
||||||
@@ -61,19 +79,25 @@ spec:
|
|||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
- name: ui
|
- name: ui
|
||||||
image: m9sweeper/piston-admin:latest
|
image: codercom/code-server:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 8080
|
||||||
env:
|
|
||||||
- name: PISTON_URL
|
|
||||||
value: "http://localhost:2000"
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "100m"
|
cpu: "500m"
|
||||||
memory: "128Mi"
|
memory: "1Gi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "250m"
|
cpu: "1"
|
||||||
memory: "256Mi"
|
memory: "2Gi"
|
||||||
|
env:
|
||||||
|
- name: PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: piston-ui-secret
|
||||||
|
key: password
|
||||||
|
volumeMounts:
|
||||||
|
- name: packages
|
||||||
|
mountPath: /home/coder/project
|
||||||
volumes:
|
volumes:
|
||||||
- name: packages
|
- name: packages
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -92,5 +116,5 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 8080
|
||||||
nodePort: 31003
|
nodePort: 31003
|
||||||
|
|||||||
Reference in New Issue
Block a user