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 KUBECONFIG: /home/gitea-runner/.kube/config
working-directory: /home/gitea-runner/infrastructure working-directory: /home/gitea-runner/infrastructure
run: | 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/ kubectl apply -f kubernetes/copilot/

View File

@@ -50,12 +50,28 @@ spec:
port: 4444 port: 4444
targetPort: 4444 targetPort: 4444
--- ---
apiVersion: v1 apiVersion: networking.k8s.io/v1
kind: Secret kind: Ingress
metadata: metadata:
name: copilot-secret name: copilot-api-ingress
namespace: copilot namespace: copilot
type: Opaque annotations:
stringData: cert-manager.io/cluster-issuer: cloudflare-issuer
token: "YOUR_COPILOT_TOKEN_HERE" 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
--- ---