Skip to content

Commit

Permalink
working login, push and pull from workstation
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Sanford <[email protected]>
  • Loading branch information
jessesanford committed Sep 13, 2024
1 parent 9bb8d89 commit d622140
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 0 deletions.
64 changes: 64 additions & 0 deletions hack/gitea/ingress.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,70 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path-oci-root
namespace: gitea
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m
spec:
ingressClassName: nginx
rules:
- host: {{ .IngressHost }}
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2
pathType: Prefix
- host: localhost
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path-oci-repo
namespace: gitea
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /v2/$2
spec:
ingressClassName: nginx
rules:
- host: {{ .IngressHost }}
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2/gitea(/|$)(.*)
pathType: ImplementationSpecific
- host: localhost
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2/gitea(/|$)(.*)
pathType: ImplementationSpecific
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path
namespace: gitea
Expand Down
64 changes: 64 additions & 0 deletions pkg/controllers/localbuild/resources/gitea/k8s/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,70 @@ spec:
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path-oci-root
namespace: gitea
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m
spec:
ingressClassName: nginx
rules:
- host: {{ .IngressHost }}
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2
pathType: Prefix
- host: localhost
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path-oci-repo
namespace: gitea
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 512m
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /v2/$2
spec:
ingressClassName: nginx
rules:
- host: {{ .IngressHost }}
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2/gitea(/|$)(.*)
pathType: ImplementationSpecific
- host: localhost
http:
paths:
- backend:
service:
name: my-gitea-http
port:
number: 3000
path: /v2/gitea(/|$)(.*)
pathType: ImplementationSpecific
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-gitea-path
namespace: gitea
Expand Down

0 comments on commit d622140

Please sign in to comment.