Compare commits
No commits in common. "17ad2c9ce860a4f0779e9b9f78ac97cd3ffc7ae4" and "d05bdc755bedd31fc3142601a98db7b3dfa2eb82" have entirely different histories.
17ad2c9ce8
...
d05bdc755b
@ -1,36 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: nginx-proxy-manager
|
|
||||||
namespace: nginx-proxy
|
|
||||||
labels:
|
|
||||||
app: nginx-proxy-manager
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: nginx-proxy-manager
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nginx-proxy-manager
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: nginx-proxy-manager
|
|
||||||
image: jc21/nginx-proxy-manager:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
- containerPort: 81
|
|
||||||
- containerPort: 443
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
- name: letsencrypt
|
|
||||||
mountPath: /etc/letsencrypt
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: nginx-proxy-pvc
|
|
||||||
- name: letsencrypt
|
|
||||||
emptyDir: {}
|
|
||||||
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: nginx-proxy-pvc
|
|
||||||
namespace: nginx-proxy
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: nginx-proxy-manager
|
|
||||||
namespace: nginx-proxy
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer # или NodePort, если MetalLB не настроен
|
|
||||||
selector:
|
|
||||||
app: nginx-proxy-manager
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
- name: admin
|
|
||||||
protocol: TCP
|
|
||||||
port: 81
|
|
||||||
targetPort: 81
|
|
||||||
- name: https
|
|
||||||
protocol: TCP
|
|
||||||
port: 443
|
|
||||||
targetPort: 443
|
|
||||||
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: planka-ingress
|
|
||||||
namespace: planka
|
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: web
|
|
||||||
spec:
|
|
||||||
rules:
|
|
||||||
- host: planka.intr
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: planka
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: planka-admin-secret
|
|
||||||
namespace: planka
|
|
||||||
type: Opaque
|
|
||||||
data:
|
|
||||||
DEFAULT_ADMIN_EMAIL: Z2JhNDA0QGdtYWlsLmNvbQ==
|
|
||||||
DEFAULT_ADMIN_PASSWORD: ODE0OA==
|
|
||||||
DEFAULT_ADMIN_NAME: cm9vdA==
|
|
||||||
DEFAULT_ADMIN_USERNAME: cm9vdA==
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: planka
|
|
||||||
namespace: planka
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: planka
|
|
||||||
type: LoadBalancer
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 1337
|
|
||||||
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: planka
|
|
||||||
namespace: planka
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: planka
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: planka
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: planka
|
|
||||||
image: ghcr.io/plankanban/planka:latest
|
|
||||||
env:
|
|
||||||
- name: DATABASE_URL
|
|
||||||
value: postgres://plankauser:8148@postgres.planka.svc.cluster.local:5432/planka
|
|
||||||
- name: SECRET_KEY
|
|
||||||
value: jdkdslsdklsdklskd
|
|
||||||
- name: BASE_URL
|
|
||||||
value: "http://planka.intr"
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: planka-admin-secret
|
|
||||||
ports:
|
|
||||||
- containerPort: 1337
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: postgres
|
|
||||||
namespace: planka
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 5432
|
|
||||||
selector:
|
|
||||||
app: postgres
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: postgres
|
|
||||||
namespace: planka
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: postgres
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: postgres
|
|
||||||
spec:
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 999
|
|
||||||
containers:
|
|
||||||
- name: postgres
|
|
||||||
image: postgres:13
|
|
||||||
env:
|
|
||||||
- name: POSTGRES_DB
|
|
||||||
value: "planka"
|
|
||||||
- name: POSTGRES_USER
|
|
||||||
value: "plankauser"
|
|
||||||
- name: POSTGRES_PASSWORD
|
|
||||||
value: "8148"
|
|
||||||
- name: PGDATA
|
|
||||||
value: "/var/lib/postgresql/data/pgdata"
|
|
||||||
ports:
|
|
||||||
- containerPort: 5432
|
|
||||||
volumeMounts:
|
|
||||||
- name: postgres-storage
|
|
||||||
mountPath: "/var/lib/postgresql/data"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 999 # Пользователь, от имени которого запускается процесс
|
|
||||||
runAsGroup: 999 # Группа, от имени которой запускается процесс
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
volumes:
|
|
||||||
- name: postgres-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: postgres-pvc
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: postgres-pvc
|
|
||||||
namespace: planka
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: metallb-system
|
namespace: metallb-system
|
||||||
spec:
|
spec:
|
||||||
addresses:
|
addresses:
|
||||||
- 192.168.0.150-192.168.0.180 # Укажите здесь диапазон, доступный в вашей сети
|
- 78.37.179.200-78.37.179.200 # Укажите здесь диапазон, доступный в вашей сети
|
||||||
---
|
---
|
||||||
apiVersion: metallb.io/v1beta1
|
apiVersion: metallb.io/v1beta1
|
||||||
kind: L2Advertisement
|
kind: L2Advertisement
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: kubernetes-dashboard-global-access
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: cluster-admin # Полный доступ ко всем ресурсам в кластере
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: default
|
|
||||||
namespace: kubernetes-dashboard
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user