Compare commits
10 Commits
e791690047
...
98e5647247
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98e5647247 | ||
|
|
65b2eadcee | ||
|
|
93d2c8738c | ||
|
|
269a75ff9f | ||
|
|
aa466bedaf | ||
|
|
48601fe391 | ||
|
|
baf3e2e7a0 | ||
|
|
11d1c6361c | ||
|
|
4abe5c9874 | ||
|
|
7e9fa5a40f |
@@ -3,6 +3,10 @@ controller:
|
|||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
config:
|
config:
|
||||||
use-forwarded-headers: true
|
use-forwarded-headers: true
|
||||||
|
client-max-body-size: "200m"
|
||||||
|
proxy-body-size: "200m"
|
||||||
|
proxy-request-buffering: "off"
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
controller:
|
|
||||||
allowSnippetAnnotations: "true"
|
|
||||||
replicaCount: 2
|
|
||||||
config:
|
|
||||||
use-forwarded-headers: true
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 250m
|
|
||||||
memory: 150Mi
|
|
||||||
service:
|
|
||||||
annotations:
|
|
||||||
service.beta.kubernetes.io/do-loadbalancer-name: "bop.local"
|
|
||||||
service.beta.kubernetes.io/do-loadbalancer-network: "INTERNAL"
|
|
||||||
@@ -31,4 +31,4 @@ spec:
|
|||||||
containerPort: 8000
|
containerPort: 8000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: mind-sos-gitea-img
|
- name: panel-gitea-img
|
||||||
@@ -4,15 +4,16 @@ metadata:
|
|||||||
name: dev-panel-bk-ig
|
name: dev-panel-bk-ig
|
||||||
namespace: dev-panel-bk-ns
|
namespace: dev-panel-bk-ns
|
||||||
annotations:
|
annotations:
|
||||||
service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
service.beta.kubernetes.io/do-loadbalancer-internal: "true"
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
service.beta.kubernetes.io/do-loadbalancer-network: "INTERNAL"
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
nginx.ingress.kubernetes.io/enable-access-log: "true"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/client-max-body-size: "100M"
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: pb8-dev.articulacion.com.co
|
- host: pb-dev.articulacion.com.co
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
- pathType: Prefix
|
||||||
@@ -24,5 +25,5 @@ spec:
|
|||||||
number: 80
|
number: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- pb8-dev.articulacion.com.co
|
- pb-dev.articulacion.com.co
|
||||||
secretName: dev-panel-bk-sc
|
secretName: dev-panel-bk-sc
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ spec:
|
|||||||
containerPort: 80
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: mind-sos-gitea-img
|
- name: panel-gitea-img
|
||||||
@@ -4,15 +4,16 @@ metadata:
|
|||||||
name: dev-panel-ft-ig
|
name: dev-panel-ft-ig
|
||||||
namespace: dev-panel-ft-ns
|
namespace: dev-panel-ft-ns
|
||||||
annotations:
|
annotations:
|
||||||
service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: "true"
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
service.beta.kubernetes.io/do-loadbalancer-internal: "true"
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
service.beta.kubernetes.io/do-loadbalancer-network: "INTERNAL"
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
nginx.ingress.kubernetes.io/enable-access-log: "true"
|
nginx.ingress.kubernetes.io/enable-access-log: "true"
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: pf8-dev.articulacion.com.co
|
- host: pf-dev.articulacion.com.co
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- pathType: Prefix
|
- pathType: Prefix
|
||||||
@@ -24,5 +25,5 @@ spec:
|
|||||||
number: 80
|
number: 80
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- pf8-dev.articulacion.com.co
|
- pf-dev.articulacion.com.co
|
||||||
secretName: dev-panel-ft-sc
|
secretName: dev-panel-ft-sc
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: prod-mind-sos-ns
|
name: dev-websocket-ns
|
||||||
8
kube-manifests/Dev/Websocket/2 - gitlab-img.yaml
Normal file
8
kube-manifests/Dev/Websocket/2 - gitlab-img.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: websocket-gitea-img
|
||||||
|
namespace: dev-websocket-ns
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=
|
||||||
30
kube-manifests/Dev/Websocket/3 - deployment.yaml
Normal file
30
kube-manifests/Dev/Websocket/3 - deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: dev-websocket-dp
|
||||||
|
namespace: dev-websocket-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: dev-websocket-ap
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: dev-websocket-ap
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dev-websocket-pd
|
||||||
|
image: gitea.articulacion.com.co/panel/websocket:dev
|
||||||
|
imagePullPolicy: Always
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "500Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
limits:
|
||||||
|
memory: "500Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: websocket-gitea-img
|
||||||
14
kube-manifests/Dev/Websocket/4 - service.yaml
Normal file
14
kube-manifests/Dev/Websocket/4 - service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: dev-websocket-sr
|
||||||
|
namespace: dev-websocket-ns
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 3000
|
||||||
|
selector:
|
||||||
|
app: dev-websocket-ap
|
||||||
|
type: ClusterIP
|
||||||
10
kube-manifests/Dev/Websocket/5 - secret.yaml
Normal file
10
kube-manifests/Dev/Websocket/5 - secret.yaml
Normal file
File diff suppressed because one or more lines are too long
29
kube-manifests/Dev/Websocket/6 - ingress.yaml
Normal file
29
kube-manifests/Dev/Websocket/6 - ingress.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: dev-websocket-ig
|
||||||
|
namespace: dev-websocket-ns
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/enable-access-log: "true"
|
||||||
|
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: ws-dev.articulacion.com.co
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: dev-websocket-sr
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- ws-dev.articulacion.com.co
|
||||||
|
secretName: dev-websocket-sc
|
||||||
@@ -5,4 +5,4 @@ metadata:
|
|||||||
namespace: dev-workers-ns
|
namespace: dev-workers-ns
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
data:
|
data:
|
||||||
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL3JlZ2lzdHJ5LmdpdGxhYi5jb20iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJrdWJlLXB1bGxlciIsCiAgICAgICAgICAgICJwYXNzd29yZCI6ICJnbGR0LUtzdWlXaGYzejRxQlN5eG5NWEM4IiwKICAgICAgICAgICAgImVtYWlsIjogImpvcmdlLnNhbmNoZXpAYXJ0aWN1bGFjaW9uLmNvbS5jbyIsCiAgICAgICAgICAgICJhdXRoIjogImEzVmlaUzF3ZFd4c1pYSTZaMnhrZEMxTGMzVnBWMmhtTTNvMGNVSlRlWGh1VFZoRE9BPT0iCiAgICAgICAgfQogICAgfQp9Cg==
|
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: dev-workers-pd
|
- name: dev-workers-pd
|
||||||
image: registry.gitlab.com/articulacion/workers:dev
|
image: gitea.articulacion.com.co/panel/workers:dev
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
10
kube-manifests/Prod/Back/.dockerconfigjson
Normal file
10
kube-manifests/Prod/Back/.dockerconfigjson
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"auths": {
|
||||||
|
"https://gitea.articulacion.com.co": {
|
||||||
|
"username": "gitea_puller",
|
||||||
|
"password": "NFveF34GBWZSaUv2KWTYiw==",
|
||||||
|
"email": "gitea@articulacion.com.co",
|
||||||
|
"auth": "Z2l0ZWFfcHVsbGVyOk5GdmVGMzRHQldaU2FVdjJLV1RZaXc9PQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
kube-manifests/Prod/Back/1 - namespace.yaml
Normal file
4
kube-manifests/Prod/Back/1 - namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-bk-ns
|
||||||
9
kube-manifests/Prod/Back/2 - gitea-img.yaml
Normal file
9
kube-manifests/Prod/Back/2 - gitea-img.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: panel-gitea-img
|
||||||
|
namespace: prod-panel-bk-ns
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=
|
||||||
|
|
||||||
34
kube-manifests/Prod/Back/3 - deployment.yaml
Normal file
34
kube-manifests/Prod/Back/3 - deployment.yaml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-bk-dp
|
||||||
|
namespace: prod-panel-bk-ns
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: prod-panel-bk-ap
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prod-panel-bk-ap
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: prod-panel-bk-pd
|
||||||
|
image: gitea.articulacion.com.co/panel/back:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "500m"
|
||||||
|
limits:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: panel-gitea-img
|
||||||
14
kube-manifests/Prod/Back/4 - service.yaml
Normal file
14
kube-manifests/Prod/Back/4 - service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-bk-sr
|
||||||
|
namespace: prod-panel-bk-ns
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8000
|
||||||
|
selector:
|
||||||
|
app: prod-panel-bk-ap
|
||||||
|
type: ClusterIP
|
||||||
10
kube-manifests/Prod/Back/5 - secret.yaml
Normal file
10
kube-manifests/Prod/Back/5 - secret.yaml
Normal file
File diff suppressed because one or more lines are too long
29
kube-manifests/Prod/Back/6 - ingress.yaml
Normal file
29
kube-manifests/Prod/Back/6 - ingress.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-bk-ig
|
||||||
|
namespace: prod-panel-bk-ns
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/client-max-body-size: "100M"
|
||||||
|
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: pb.articulacion.com.co
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: prod-panel-bk-sr
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- pb.articulacion.com.co
|
||||||
|
secretName: prod-panel-bk-sc
|
||||||
@@ -1,25 +1,25 @@
|
|||||||
apiVersion: autoscaling/v2
|
apiVersion: autoscaling/v2
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
name: prod-mind-sos-hpa
|
name: prod-panel-bk-hpa
|
||||||
namespace: prod-mind-sos-ns
|
namespace: prod-panel-bk-ns
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: prod-mind-sos-dp
|
name: prod-panel-bk-dp
|
||||||
minReplicas: 1
|
minReplicas: 2
|
||||||
maxReplicas: 10
|
maxReplicas: 5
|
||||||
metrics:
|
metrics:
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
target:
|
target:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: 90
|
averageUtilization: 70
|
||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: memory
|
name: memory
|
||||||
target:
|
target:
|
||||||
type: Utilization
|
type: Utilization
|
||||||
averageUtilization: 90
|
averageUtilization: 70
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: mind-sos-gitea-img
|
|
||||||
namespace: prod-mind-sos-ns
|
|
||||||
type: kubernetes.io/dockerconfigjson
|
|
||||||
data:
|
|
||||||
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLnRhcnMudG9vbHMiOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQHRhcnMuZGV2IiwKICAgICAgICAgICAgImF1dGgiOiAiWjJsMFpXRmZjSFZzYkdWeU9rNUdkbVZHTXpSSFFsZGFVMkZWZGpKTFYxUlphWGM5UFE9PSIKICAgICAgICB9CiAgICB9Cn0K
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: prod-redis-sos-dp
|
|
||||||
namespace: prod-mind-sos-ns
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: prod-redis-sos-ap
|
|
||||||
strategy:
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: prod-redis-sos-ap
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: prod-redis-sos-pd
|
|
||||||
image: redis:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "100Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
limits:
|
|
||||||
memory: "100Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
ports:
|
|
||||||
- name: redis
|
|
||||||
containerPort: 6379
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# prod-redis-sos-sr.prod-mind-sos-ns.svc.cluster.local
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: prod-redis-sos-sr
|
|
||||||
namespace: prod-mind-sos-ns
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
protocol: TCP
|
|
||||||
port: 6379
|
|
||||||
targetPort: 6379
|
|
||||||
selector:
|
|
||||||
app: prod-redis-sos-ap
|
|
||||||
type: ClusterIP
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: prod-mind-sos-ig
|
|
||||||
namespace: prod-mind-sos-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: sos.bop.local
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: "/"
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: prod-mind-sos-sr
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
|
|
||||||
10
kube-manifests/Prod/Front/.dockerconfigjson
Normal file
10
kube-manifests/Prod/Front/.dockerconfigjson
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"auths": {
|
||||||
|
"https://gitea.articulacion.com.co": {
|
||||||
|
"username": "gitea_puller",
|
||||||
|
"password": "NFveF34GBWZSaUv2KWTYiw==",
|
||||||
|
"email": "gitea@articulacion.com.co",
|
||||||
|
"auth": "Z2l0ZWFfcHVsbGVyOk5GdmVGMzRHQldaU2FVdjJLV1RZaXc9PQ=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
kube-manifests/Prod/Front/1 - namespace.yaml
Normal file
4
kube-manifests/Prod/Front/1 - namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-ft-ns
|
||||||
8
kube-manifests/Prod/Front/2 - gitea-img.yaml
Normal file
8
kube-manifests/Prod/Front/2 - gitea-img.yaml
Normal 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=
|
||||||
@@ -1,23 +1,23 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: prod-mind-sos-dp
|
name: prod-panel-ft-dp
|
||||||
namespace: prod-mind-sos-ns
|
namespace: prod-panel-ft-ns
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: prod-mind-sos-ap
|
app: prod-panel-ft-ap
|
||||||
strategy:
|
strategy:
|
||||||
type: RollingUpdate
|
type: RollingUpdate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: prod-mind-sos-ap
|
app: prod-panel-ft-ap
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: prod-mind-sos-pd
|
- name: prod-panel-ft-pd
|
||||||
image: gitea.tars.tools/mind/help_center:latest
|
image: gitea.articulacion.com.co/panel/front:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -31,4 +31,4 @@ spec:
|
|||||||
containerPort: 80
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: mind-sos-gitea-img
|
- name: panel-gitea-img
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: prod-mind-sos-sr
|
name: prod-panel-ft-sr
|
||||||
namespace: prod-mind-sos-ns
|
namespace: prod-panel-ft-ns
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@@ -10,5 +10,5 @@ spec:
|
|||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
selector:
|
selector:
|
||||||
app: prod-mind-sos-ap
|
app: prod-panel-ft-ap
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
10
kube-manifests/Prod/Front/5 - secret.yaml
Normal file
10
kube-manifests/Prod/Front/5 - secret.yaml
Normal file
File diff suppressed because one or more lines are too long
29
kube-manifests/Prod/Front/6 - ingress.yaml
Normal file
29
kube-manifests/Prod/Front/6 - ingress.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: prod-panel-ft-ig
|
||||||
|
namespace: prod-panel-ft-ns
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
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
|
||||||
25
kube-manifests/Prod/Front/7 - hpa.yaml
Normal file
25
kube-manifests/Prod/Front/7 - hpa.yaml
Normal 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
|
||||||
4
kube-manifests/Prod/Websocket/1 - namespace.yaml
Normal file
4
kube-manifests/Prod/Websocket/1 - namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: prod-websocket-ns
|
||||||
8
kube-manifests/Prod/Websocket/2 - gitlab-img.yaml
Normal file
8
kube-manifests/Prod/Websocket/2 - gitlab-img.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: websocket-gitea-img
|
||||||
|
namespace: prod-websocket-ns
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=
|
||||||
30
kube-manifests/Prod/Websocket/3 - deployment.yaml
Normal file
30
kube-manifests/Prod/Websocket/3 - deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: prod-websocket-dp
|
||||||
|
namespace: prod-websocket-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: prod-websocket-ap
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: prod-websocket-ap
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: prod-websocket-pd
|
||||||
|
image: gitea.articulacion.com.co/panel/websocket:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "250m"
|
||||||
|
limits:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "250m"
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: websocket-gitea-img
|
||||||
14
kube-manifests/Prod/Websocket/4 - service.yaml
Normal file
14
kube-manifests/Prod/Websocket/4 - service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: prod-websocket-sr
|
||||||
|
namespace: prod-websocket-ns
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 3000
|
||||||
|
selector:
|
||||||
|
app: prod-websocket-ap
|
||||||
|
type: ClusterIP
|
||||||
10
kube-manifests/Prod/Websocket/5 - secret.yaml
Normal file
10
kube-manifests/Prod/Websocket/5 - secret.yaml
Normal file
File diff suppressed because one or more lines are too long
29
kube-manifests/Prod/Websocket/6 - ingress.yaml
Normal file
29
kube-manifests/Prod/Websocket/6 - ingress.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: prod-websocket-ig
|
||||||
|
namespace: prod-websocket-ns
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||||
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
nginx.ingress.kubernetes.io/enable-access-log: "true"
|
||||||
|
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: ws.articulacion.com.co
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: prod-websocket-sr
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- ws.articulacion.com.co
|
||||||
|
secretName: prod-websocket-sc
|
||||||
@@ -5,4 +5,4 @@ metadata:
|
|||||||
namespace: prod-workers-ns
|
namespace: prod-workers-ns
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
data:
|
data:
|
||||||
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL3JlZ2lzdHJ5LmdpdGxhYi5jb20iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJrdWJlLXB1bGxlciIsCiAgICAgICAgICAgICJwYXNzd29yZCI6ICJnbGR0LUtzdWlXaGYzejRxQlN5eG5NWEM4IiwKICAgICAgICAgICAgImVtYWlsIjogImpvcmdlLnNhbmNoZXpAYXJ0aWN1bGFjaW9uLmNvbS5jbyIsCiAgICAgICAgICAgICJhdXRoIjogImEzVmlaUzF3ZFd4c1pYSTZaMnhrZEMxTGMzVnBWMmhtTTNvMGNVSlRlWGh1VFZoRE9BPT0iCiAgICAgICAgfQogICAgfQp9Cg==
|
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL2dpdGVhLmFydGljdWxhY2lvbi5jb20uY28iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJnaXRlYV9wdWxsZXIiLAogICAgICAgICAgICAicGFzc3dvcmQiOiAiTkZ2ZUYzNEdCV1pTYVV2MktXVFlpdz09IiwKICAgICAgICAgICAgImVtYWlsIjogImdpdGVhQGFydGljdWxhY2lvbi5jb20uY28iLAogICAgICAgICAgICAiYXV0aCI6ICJaMmwwWldGZmNIVnNiR1Z5T2s1R2RtVkdNelJIUWxkYVUyRlZkakpMVjFSWmFYYzlQUT09IgogICAgICAgIH0KICAgIH0KfQo=
|
||||||
|
|||||||
@@ -17,14 +17,13 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: prod-workers-pd
|
- name: prod-workers-pd
|
||||||
image: registry.gitlab.com/articulacion/workers:latest
|
image: gitea.articulacion.com.co/panel/workers:latest
|
||||||
imagePullPolicy: Always
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "100Mi"
|
memory: "2Gi"
|
||||||
cpu: "100m"
|
cpu: "500m"
|
||||||
limits:
|
limits:
|
||||||
memory: "150Gi"
|
memory: "2Gi"
|
||||||
cpu: "150m"
|
cpu: "500m"
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: workers-gitlab-img
|
- name: workers-gitlab-img
|
||||||
|
|||||||
Reference in New Issue
Block a user