diff --git a/gitea/ingress.yaml b/gitea/ingress.yaml index 9300105..09cd376 100644 --- a/gitea/ingress.yaml +++ b/gitea/ingress.yaml @@ -16,7 +16,7 @@ spec: service: name: gitea port: - number: 3000 + name: gitea tls: - hosts: - git.strudelline.net diff --git a/gitea/runner.yaml b/gitea/runner.yaml new file mode 100644 index 0000000..dcd659d --- /dev/null +++ b/gitea/runner.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: gitea + name: runner +spec: + replicas: 3 + selector: + matchLabels: + app: runner + template: + metadata: + labels: + app: runner + spec: + containers: + - image: gitea/act_runner + name: runner + env: + - name: GITEA_INSTANCE_URL + value: http://gitea.gitea.svc.cluster.local:3000 + - name: GITEA_RUNNER_REGISTRATION_TOKEN + value: OglSwX59lJ5t96JTwu1AIwUkQEkgxrGdd7TQvQhC + restartPolicy: Always diff --git a/gitea/svc-http.yaml b/gitea/svc-http.yaml new file mode 100644 index 0000000..74acd05 --- /dev/null +++ b/gitea/svc-http.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: gitea + name: gitea + namespace: gitea +spec: + selector: + app: gitea + ports: + - port: 3000 + name: gitea + protocol: TCP + targetPort: 3000 + type: ClusterIP diff --git a/gitea/svc.yaml b/gitea/svc-ssh.yaml similarity index 100% rename from gitea/svc.yaml rename to gitea/svc-ssh.yaml