copilot
This commit is contained in:
@@ -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/
|
||||||
|
|||||||
@@ -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
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user