This commit is contained in:
Houtworm 2023-06-09 04:07:37 +02:00
parent d0bd3a7c28
commit 659879308d
10 changed files with 0 additions and 193 deletions

View File

@ -1,20 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ftp
labels:
app: ftp
spec:
replicas: 1
selector:
matchLabels:
app: ftp
template:
metadata:
labels:
app: ftp
spec:
containers:
- name: ftp
image: ftp
imagePullPolicy: Never

View File

@ -1,17 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: ftp
spec:
type: LoadBalancer
selector:
app: ftp
ports:
- name: ftp
protocol: TCP
port: 21
nodePort: 21
- name: pftp
protocol: TCP
port: 21000
nodePort: 21000

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mariadb
labels:
app: mariadb
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

View File

@ -1,18 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: mariadb
labels:
type: local
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
hostPath:
path: "/mnt/mariadb"
type: DirectoryOrCreate
claimRef:
name: mariadb
namespace: default

View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: mariadb
spec:
type: ClusterIP
selector:
app: mariadb
ports:
- name: mariadb
protocol: TCP
port: 3306

View File

@ -1,28 +0,0 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mariadb
labels:
app: mariadb
spec:
replicas: 1
serviceName: mariadb
selector:
matchLabels:
app: mariadb
template:
metadata:
labels:
app: mariadb
spec:
containers:
- name: mariadb
image: mariadb
imagePullPolicy: Never
volumeMounts:
- name: mariadb
mountPath: /var/lib/mysql
volumes:
- name: mariadb
persistentVolumeClaim:
claimName: mariadb

View File

@ -1,26 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: Never
livenessProbe:
exec:
command:
- /bin/sh
- -c
- 'pgrep telegraf && pgrep sshd && pgrep nginx'

View File

@ -1,21 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
type: LoadBalancer
selector:
app: nginx
ports:
- name: http
protocol: TCP
port: 80
nodePort: 80
- name: https
protocol: TCP
port: 443
nodePort: 443
- name: ssh
protocol: TCP
port: 22
nodePort: 22

View File

@ -1,26 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
replicas: 1
selector:
matchLabels:
app: wordpress
template:
metadata:
labels:
app: wordpress
spec:
containers:
- name: wordpress
image: wordpress
imagePullPolicy: Never
livenessProbe:
exec:
command:
- /bin/sh
- -c
- 'pgrep telegraf && pgrep php-fpm7 && pgrep nginx'

View File

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: wordpress
spec:
type: LoadBalancer
selector:
app: wordpress
ports:
- name: wordpress
protocol: TCP
port: 5050
nodePort: 5050