Compare commits
5 Commits
a0134a6cfc
...
99b477d109
| Author | SHA1 | Date | |
|---|---|---|---|
| 99b477d109 | |||
| 440e48abac | |||
| 7e15549221 | |||
| 454677fd14 | |||
| a1cd6d88cd |
@@ -17,61 +17,36 @@ spec:
|
||||
app: clawdbox
|
||||
spec:
|
||||
containers:
|
||||
- name: clawdbox
|
||||
image: image-registry.openshift-image-registry.svc:5000/park/clawdbox:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 2222
|
||||
name: ssh
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data-volume
|
||||
- mountPath: /home/claw/.ssh
|
||||
name: ssh-keys
|
||||
resources:
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1000m"
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
- name: clawdbox
|
||||
image: image-registry.openshift-image-registry.svc:5000/clawdbox/clawdbox:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 2222
|
||||
name: ssh
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data-volume
|
||||
- mountPath: /home/claw/.ssh
|
||||
name: ssh-keys
|
||||
resources:
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1000m"
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumes:
|
||||
- name: data-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: clawdbox-pvc
|
||||
- name: ssh-keys
|
||||
secret:
|
||||
secretName: clawdbox-ssh-keys
|
||||
defaultMode: 0600
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: clawdbox
|
||||
labels:
|
||||
app: clawdbox
|
||||
spec:
|
||||
ports:
|
||||
- port: 2222
|
||||
targetPort: 2222
|
||||
name: ssh
|
||||
selector:
|
||||
app: clawdbox
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: clawdbox-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
- name: data-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: clawdbox-pvc
|
||||
- name: ssh-keys
|
||||
secret:
|
||||
secretName: clawdbox-ssh-keys
|
||||
defaultMode: 0600
|
||||
|
||||
7
manifests/namespace.yaml
Normal file
7
manifests/namespace.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: clawdbox
|
||||
labels:
|
||||
app.kubernetes.io/name: clawdbox
|
||||
app.kubernetes.io/part-of: clawdbox
|
||||
11
manifests/pvc.yaml
Normal file
11
manifests/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: clawdbox-pvc
|
||||
namespace: clawdbox
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
8
manifests/secret.yaml
Normal file
8
manifests/secret.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
authorized_keys: c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU1GVTQySlNuUTFwaW81eGFFSWd0SDNMaEd6dy9yTjNLY2FHRUhheFNOUG8gY29uYW5ATWluaU1lLmxvY2FsCg==
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: clawdbox-ssh-keys
|
||||
namespace: clawdbox
|
||||
type: Opaque
|
||||
14
manifests/service.yaml
Normal file
14
manifests/service.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: clawdbox
|
||||
namespace: clawdbox
|
||||
labels:
|
||||
app: clawdbox
|
||||
spec:
|
||||
ports:
|
||||
- port: 2222
|
||||
targetPort: 2222
|
||||
name: ssh
|
||||
selector:
|
||||
app: clawdbox
|
||||
Reference in New Issue
Block a user