| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: overleaf-git-bridge
- namespace: overleaf # Cambia esto por tu namespace si usas uno específico
- labels:
- app: overleaf-git-bridge
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: overleaf-git-bridge
- template:
- metadata:
- labels:
- app: overleaf-git-bridge
- spec:
- containers:
- - name: olgitbridge
- # image: harbor.reymota.es/overleaf/olgitbridge:1.0
- image: ghcr.io/ayaka-notes/olgitbridge:latest
- imagePullPolicy: IfNotPresent
- ports:
- - containerPort: 8022
- name: git-port
- env:
- - name: OVERLEAF_URL
- # Usa la URL HTTP o HTTPS interna o externa de tu Overleaf CE
- # Ejemplo interno si está en el mismo clúster: http://cluster.local
- #value: "http://overleaf-git-bridge-svc.overleaf.svc.cluster.local:8022"
- value: "https://overleaf.reymota.es"
- resources:
- limits:
- cpu: "200m"
- memory: "256Mi"
- requests:
- cpu: "100m"
- memory: "128Mi"
- imagePullSecrets:
- - name: myregistrykey
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: overleaf-git-bridge-svc
- namespace: overleaf # Cambia esto por tu namespace si usas uno específico
- spec:
- selector:
- app: overleaf-git-bridge
- # Si tus runners de Forgejo están FUERA del clúster de Kubernetes, cambia 'ClusterIP' por 'NodePort' o 'LoadBalancer'
- type: NodePort
- ports:
- - protocol: TCP
- port: 8022 # Puerto expuesto en el clúster
- targetPort: 5000 # Puerto del contenedor
- nodePort: 30361
- name: git
|