🔥 remove backup files

This commit is contained in:
2024-07-03 13:22:38 +01:00
parent 47ab6b91a8
commit a7ad81a3fe
2 changed files with 0 additions and 197 deletions
-102
View File
@@ -1,102 +0,0 @@
apiVersion: v1
data:
config.toml: |
title = "Tweet Service Configuration"
# address
address = ":9090"
# redis
[redis]
address = "redis.staging:6379"
db = 0
pass = ""
# context
[context]
timeout = 2
kind: ConfigMap
metadata:
name: configmap-nginx
namespace: reverse-proxy
---
apiVersion: v1
kind: Namespace
metadata:
name: reverse-proxy
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reverse-proxy
namespace: reverse-proxy
spec:
replicas: 1
selector:
matchLabels:
app: reverse-proxy
template:
metadata:
labels:
app: reverse-proxy
spec:
containers:
- image: nginx:alpine
imagePullPolicy: IfNotPresent
name: reverse-proxy
ports:
- containerPort: 80
name: rp-port-http
- containerPort: 443
name: rp-port-https
volumeMounts:
- name: reverse-proxy-conf
mountPath: /etc/nginx/conf.d/
- name: reverse-proxy-ssl
mountPath: /etc/nginx/ssl/
# - name: config
# mountPath: /etc/nginx/nginx.conf
# subPath: nginx.conf
# - name: configs
# mountPath: /app/config.toml
# subPath: config.toml
- mountPath: /etc/nginx/nginx.conf
name: example-volume
volumes:
# - name: configs
# configMap:
# name: configmap-nginx
- name: reverse-proxy-conf
hostPath:
path: /opt/kubernetes/Nginx_kube/conf.d
- name: reverse-proxy-ssl
hostPath:
path: /opt/kubernetes/Nginx_kube/certbot/conf/
# - name: config
# configMap:
# name: nginx-config
- name: example-volume
# mount /data/foo, but only if that directory already exists
hostPath:
path: /opt/kubernetes/Nginx_kube/nginx.conf # directory location on host
type: File # this field is optional
---
apiVersion: v1
kind: Service
metadata:
name: reverse-proxy
namespace: reverse-proxy
spec:
ports:
- name: http
port: 80
targetPort: rp-port-http
protocol: TCP
nodePort: 30080
- name: https
port: 443
targetPort: rp-port-https
protocol: TCP
nodePort: 30443
type: NodePort
selector:
app: reverse-proxy
-95
View File
@@ -1,95 +0,0 @@
apiVersion: v1
data:
config.toml: |
title = "Tweet Service Configuration"
# address
address = ":9090"
# redis
[redis]
address = "redis.staging:6379"
db = 0
pass = ""
# context
[context]
timeout = 2
kind: ConfigMap
metadata:
name: config-nginx
namespace: reverse-proxy
---
apiVersion: v1
kind: Namespace
metadata:
name: reverse-proxy
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reverse-proxy
namespace: reverse-proxy
spec:
replicas: 1
selector:
matchLabels:
app: reverse-proxy
template:
metadata:
labels:
app: reverse-proxy
spec:
containers:
- image: nginx:alpine
imagePullPolicy: IfNotPresent
name: reverse-proxy
ports:
- containerPort: 80
name: rp-port-http
- containerPort: 443
name: rp-port-https
volumeMounts:
- name: reverse-proxy-conf
mountPath: /etc/nginx/conf.d/
- name: reverse-proxy-ssl
mountPath: /etc/nginx/ssl/
# - name: config
# mountPath: /etc/nginx/nginx.conf
# subPath: nginx.conf
- name: configs
mountPath: /app/config.toml
subPath: config.toml
volumes:
- name: configs
configMap:
name: config-nginx
- name: reverse-proxy-conf
hostPath:
path: /opt/kubernetes/Nginx_kube/conf.d
- name: reverse-proxy-ssl
hostPath:
path: /opt/kubernetes/Nginx_kube/certbot/conf/
# - name: config
# configMap:
# name: nginx-config
---
apiVersion: v1
kind: Service
metadata:
name: reverse-proxy
namespace: reverse-proxy
spec:
ports:
- name: http
port: 80
targetPort: rp-port-http
protocol: TCP
nodePort: 30080
- name: https
port: 443
targetPort: rp-port-https
protocol: TCP
nodePort: 30443
type: NodePort
selector:
app: reverse-proxy