pods prod

This commit is contained in:
Beto Sánchez
2025-04-25 16:26:06 -05:00
parent e791690047
commit 7e9fa5a40f
21 changed files with 191 additions and 82 deletions

View File

@@ -0,0 +1,10 @@
{
"auths": {
"https://gitea.articulacion.com.co": {
"username": "gitea_puller",
"password": "NFveF34GBWZSaUv2KWTYiw==",
"email": "gitea@articulacion.com.co",
"auth": "Z2l0ZWFfcHVsbGVyOk5GdmVGMzRHQldaU2FVdjJLV1RZaXc9PQ=="
}
}
}

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: prod-panel-ft-ns

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: panel-gitea-img
namespace: prod-panel-ft-ns
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: prod-panel-ft-dp
namespace: prod-panel-ft-ns
spec:
replicas: 2
selector:
matchLabels:
app: prod-panel-ft-ap
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: prod-panel-ft-ap
spec:
containers:
- name: prod-panel-ft-pd
image: gitea.articulacion.com.co/panel/front:latest
imagePullPolicy: Always
resources:
requests:
memory: "500Mi"
cpu: "250m"
limits:
memory: "500Mi"
cpu: "250m"
ports:
- name: http
containerPort: 80
protocol: TCP
imagePullSecrets:
- name: mind-sos-gitea-img

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: prod-panel-ft-sr
namespace: prod-panel-ft-ns
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
selector:
app: prod-panel-ft-ap
type: ClusterIP

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,28 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: prod-panel-ft-ig
namespace: prod-panel-ft-ns
annotations:
service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"
service.beta.kubernetes.io/do-loadbalancer-internal: "true"
service.beta.kubernetes.io/do-loadbalancer-network: "INTERNAL"
nginx.ingress.kubernetes.io/enable-access-log: "true"
spec:
ingressClassName: nginx
rules:
- host: pf.articulacion.com.co
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: prod-panel-ft-sr
port:
number: 80
tls:
- hosts:
- pf.articulacion.com.co
secretName: prod-panel-ft-sc

View File

@@ -0,0 +1,25 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: prod-panel-ft-hpa
namespace: prod-panel-ft-ns
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: prod-panel-ft-dp
minReplicas: 2
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70