initial commit
This commit is contained in:
11
dev/hercules/catalog-info.yaml
Normal file
11
dev/hercules/catalog-info.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: dev-hercules
|
||||
title: Hercules (dev)
|
||||
spec:
|
||||
type: service
|
||||
lifecycle: production
|
||||
owner: platform-team
|
||||
partOf:
|
||||
- ../catalog-info.yaml
|
||||
14
dev/hercules/hercules-pv.yaml
Executable file
14
dev/hercules/hercules-pv.yaml
Executable file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: hercules-pv
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: manual
|
||||
capacity:
|
||||
storage: 30Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: "/share"
|
||||
11
dev/hercules/hercules-pvc.yaml
Executable file
11
dev/hercules/hercules-pvc.yaml
Executable file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: hercules-pvc
|
||||
spec:
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 30Gi
|
||||
19
dev/hercules/hercules-test.yaml
Executable file
19
dev/hercules/hercules-test.yaml
Executable file
@@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hercules
|
||||
labels:
|
||||
app: hercules
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hercules
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hercules
|
||||
spec:
|
||||
containers:
|
||||
- name: hercules
|
||||
image: core.harbor.alldcs.nl/test/hercules
|
||||
60
dev/hercules/hercules.yaml
Executable file
60
dev/hercules/hercules.yaml
Executable file
@@ -0,0 +1,60 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: hercules
|
||||
labels:
|
||||
app: hercules
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: hercules
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: hercules
|
||||
spec:
|
||||
containers:
|
||||
- name: hercules
|
||||
image: core.harbor.alldcs.nl/test/hercules
|
||||
securityContext:
|
||||
privileged: true
|
||||
capabilities:
|
||||
add: ["NET_ADMIN","NET_RAW"]
|
||||
ports:
|
||||
- containerPort: 22
|
||||
name: hercules-ssh
|
||||
- containerPort: 80
|
||||
name: hercules
|
||||
- containerPort: 3270
|
||||
name: terminal
|
||||
- containerPort: 3390
|
||||
name: network
|
||||
volumeMounts:
|
||||
- mountPath: /share
|
||||
name: hercules
|
||||
- mountPath: /mnt
|
||||
name: mnt
|
||||
subPath: hercules
|
||||
volumes:
|
||||
- name: hercules
|
||||
persistentVolumeClaim:
|
||||
claimName: hercules-pvc
|
||||
- name: mnt
|
||||
persistentVolumeClaim:
|
||||
claimName: mnt
|
||||
nodeSelector:
|
||||
hercules: hercules1
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: hercules
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
targetPort: 80
|
||||
port: 80
|
||||
selector:
|
||||
app: hercules
|
||||
type: NodePort
|
||||
Reference in New Issue
Block a user