seperated manifests
This commit is contained in:
@@ -17,39 +17,39 @@ spec:
|
|||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: clawdbox
|
- name: clawdbox
|
||||||
image: image-registry.openshift-image-registry.svc:5000/park/clawdbox:latest
|
image: image-registry.openshift-image-registry.svc:5000/clawdbox/clawdbox:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 2222
|
- containerPort: 2222
|
||||||
name: ssh
|
name: ssh
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data-volume
|
name: data-volume
|
||||||
- mountPath: /home/claw/.ssh
|
- mountPath: /home/claw/.ssh
|
||||||
name: ssh-keys
|
name: ssh-keys
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
requests:
|
requests:
|
||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["ALL"]
|
drop: ["ALL"]
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
volumes:
|
volumes:
|
||||||
- name: data-volume
|
- name: data-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: clawdbox-pvc
|
claimName: clawdbox-pvc
|
||||||
- name: ssh-keys
|
- name: ssh-keys
|
||||||
secret:
|
secret:
|
||||||
secretName: clawdbox-ssh-keys
|
secretName: clawdbox-ssh-keys
|
||||||
defaultMode: 0600
|
defaultMode: 0600
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -59,9 +59,9 @@ metadata:
|
|||||||
app: clawdbox
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 2222
|
- port: 2222
|
||||||
targetPort: 2222
|
targetPort: 2222
|
||||||
name: ssh
|
name: ssh
|
||||||
selector:
|
selector:
|
||||||
app: clawdbox
|
app: clawdbox
|
||||||
---
|
---
|
||||||
@@ -74,4 +74,5 @@ spec:
|
|||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: clawdbox-home
|
name: clawdbox-pvc
|
||||||
namespace: clawdbox
|
namespace: clawdbox
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 4Gi
|
storage: 10Gi
|
||||||
# storageClassName: <set if you want to pin it>
|
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: clawdbox
|
name: clawdbox
|
||||||
namespace: clawdbox
|
namespace: clawdbox
|
||||||
|
labels:
|
||||||
|
app: clawdbox
|
||||||
spec:
|
spec:
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: clawdbox
|
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- port: 2222
|
||||||
port: 22
|
targetPort: 2222
|
||||||
targetPort: 22
|
name: ssh
|
||||||
|
selector:
|
||||||
|
app: clawdbox
|
||||||
|
|||||||
Reference in New Issue
Block a user