Compare commits
2 commits
9c39f096bc
...
c16f9aa534
Author | SHA1 | Date | |
---|---|---|---|
c16f9aa534 | |||
1068609bbe |
7 changed files with 42 additions and 12 deletions
13
.woodpecker.yaml
Normal file
13
.woodpecker.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
labels:
|
||||
backend: kubernetes
|
||||
steps:
|
||||
- name: linting
|
||||
image: cytopia/yamllint:latest
|
||||
commands:
|
||||
- yamllint -f colored -s .
|
||||
when:
|
||||
- event:
|
||||
- push
|
||||
- manual
|
||||
- pull_request
|
12
.yamllint
Normal file
12
.yamllint
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
yaml-files:
|
||||
- '*.yaml'
|
||||
- '*.yml'
|
||||
- '.yamllint'
|
||||
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
line-length: disable
|
||||
indentation:
|
||||
indent-sequences: consistent
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
|
@ -30,12 +31,12 @@ spec:
|
|||
value: "1000"
|
||||
name: forgejo
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: web
|
||||
protocol: TCP
|
||||
- containerPort: 22
|
||||
name: ssh
|
||||
protocol: TCP
|
||||
- containerPort: 3000
|
||||
name: web
|
||||
protocol: TCP
|
||||
- containerPort: 22
|
||||
name: ssh
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: "/data"
|
||||
name: forgejo-pv-storage
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
|
@ -22,6 +23,6 @@ spec:
|
|||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- git.svc.neuber.io
|
||||
secretName: forgejo-tls-key
|
||||
- hosts:
|
||||
- git.svc.neuber.io
|
||||
secretName: forgejo-tls-key
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: forgejo
|
||||
name: forgejo
|
||||
name: forgejo
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
|
@ -9,7 +10,7 @@ metadata:
|
|||
namespace: forgejo
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
volumeName: pvc-64e344d5-9dbe-4de4-9e6f-a1bad1da300e
|
||||
resources:
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
@ -17,4 +18,4 @@ spec:
|
|||
targetPort: 22
|
||||
selector:
|
||||
app: forgejo-pod
|
||||
type: ClusterIP
|
||||
type: ClusterIP
|
||||
|
|
Loading…
Add table
Reference in a new issue