copilot
Some checks failed
Apply Kuberentes Configs / update-repo (push) Successful in 0s
Apply Kuberentes Configs / update-infrastructure (push) Failing after 2s

This commit is contained in:
2026-02-15 17:54:51 -07:00
parent e6d53e33df
commit ea983af9a4
2 changed files with 27 additions and 6 deletions

View File

@@ -37,4 +37,9 @@ jobs:
KUBECONFIG: /home/gitea-runner/.kube/config
working-directory: /home/gitea-runner/infrastructure
run: |
kubectl create secret generic copilot-secret \
-n copilot \
--from-literal=token=${{ secrets.COPILOT_SECRET }} \
--dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f kubernetes/copilot/

View File

@@ -50,12 +50,28 @@ spec:
port: 4444
targetPort: 4444
---
apiVersion: v1
kind: Secret
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: copilot-secret
name: copilot-api-ingress
namespace: copilot
type: Opaque
stringData:
token: "YOUR_COPILOT_TOKEN_HERE"
annotations:
cert-manager.io/cluster-issuer: cloudflare-issuer
spec:
ingressClassName: nginx
tls:
- hosts:
- copilot.alexmickelson.guru
secretName: copilot-api-tls-cert
rules:
- host: copilot.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: copilot-api
port:
number: 4444
---