Remove unused files

This commit is contained in:
Santiago Lo Coco 2023-11-15 23:03:27 -03:00
parent fdd5d1041b
commit bcfbc3d253
7 changed files with 1 additions and 264 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.venv
old-helm
old

View File

@ -1,59 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: api
labels:
app: api
spec:
ports:
- port: 5000
selector:
app: api
tier: backend
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
labels:
app: api
spec:
replicas: 1
selector:
matchLabels:
app: api
tier: backend
strategy:
type: Recreate
template:
metadata:
labels:
app: api
tier: backend
spec:
containers:
- image: api:prod
name: api
env:
- name: POSTGRES_DB
value: api-db
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secrets
key: password
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secrets
key: username
- name: DATABASE_URL
value: postgresql://$(POSTGRES_USER):$(POSTGRES_PASS)@api-db/$(POSTGRES_DB)
- name: APP_SETTINGS
value: src.config.ProductionConfig
- name: PORT
value: "5000"
ports:
- containerPort: 5000
name: api

View File

@ -1,19 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minikube-ingress-2
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: api
port:
number: 5000

View File

@ -1,41 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: client
labels:
app: client
spec:
ports:
- port: 8080
targetPort: 80
selector:
app: client
tier: frontend
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: client
labels:
app: client
spec:
replicas: 1
selector:
matchLabels:
app: client
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: client
tier: frontend
spec:
containers:
- image: client:prod
name: client
ports:
- containerPort: 80
name: client

View File

@ -1,15 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minikube-ingress
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: client
port:
number: 8080

View File

@ -1,103 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: postgres
labels:
app: postgres
spec:
ports:
- port: 5432
selector:
app: postgres
tier: postgres
clusterIP: None
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: postgres-pv
labels:
type: local
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: manual
# TODO: change hostPath (short.slc.ar/YkdtaD)
hostPath:
path: /tmp/minikube/postgres
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-pv-claim
labels:
app: db
spec:
accessModes:
- ReadWriteOnce
storageClassName: manual
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Secret
metadata:
name: postgres-secrets
type: Opaque
data:
username: dXNlcm5hbWU=
password: cGFzc3dvcmQxMjM0
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: db
labels:
app: db
spec:
replicas: 1
selector:
matchLabels:
app: db
tier: postgres
strategy:
type: Recreate
template:
metadata:
labels:
app: db
tier: postgres
spec:
containers:
- image: db:prod
name: postgres
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secrets
key: password
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: POSTGRES_DB
value: db
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secrets
key: username
ports:
- containerPort: 5432
name: postgres
volumeMounts:
- name: postgres-pv-storage
mountPath: /var/lib/postgresql/data
volumes:
- name: postgres-pv-storage
persistentVolumeClaim:
claimName: postgres-pv-claim

View File

@ -1,27 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minikube-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
# - host: kube.slc.ar
- http:
paths:
- path: /()(.*)
pathType: ImplementationSpecific
backend:
service:
name: client
port:
number: 8080
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: api
port:
number: 5000