add app renovate
This commit is contained in:
66
kubernetes/infrastructure/renovate/app/deployment.yaml
Normal file
66
kubernetes/infrastructure/renovate/app/deployment.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: renovate
|
||||
namespace: renovate
|
||||
labels:
|
||||
app: renovate
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: renovate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: renovate
|
||||
spec:
|
||||
containers:
|
||||
- name: renovate
|
||||
image: ghcr.io/mend/renovate-ce:7.4.0-full
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: MEND_RNV_ACCEPT_TOS
|
||||
value: y
|
||||
- name: MEND_RNV_LICENSE_KEY
|
||||
value: ${renovate_license_key}
|
||||
- name: MEND_RNV_PLATFORM
|
||||
value: github
|
||||
- name: MEND_RNV_GITHUB_APP_ID
|
||||
value: ${github_app_id}
|
||||
- name: RNV_GITHUB_PEM_FILE_PATH
|
||||
value: "/usr/src/app/rpi5-cluster-renovate.2024-07-05.private-key.pem"
|
||||
- name: MEND_RNV_WEBHOOK_SECRET
|
||||
value: ${github_app_webhook_secret}
|
||||
- name: MEND_RNV_ADMIN_API_ENABLED
|
||||
value: "true"
|
||||
- name: MEND_RNV_SERVER_API_SECRET
|
||||
value: ${server_api_secret}
|
||||
- name: GITHUB_COM_TOKEN
|
||||
value: ${github_pat}
|
||||
- name: MEND_RNV_AUTODISCOVER_FILTER
|
||||
value: "3dwardch3ng/home-cluster-ops"
|
||||
- name: MEND_RNV_ENQUEUE_JOBS_ON_STARTUP
|
||||
value: "enabled"
|
||||
- name: MEND_RNV_LOG_HISTORY_DIR
|
||||
value: "/logs"
|
||||
volumeMounts:
|
||||
- name: renovate-db
|
||||
mountPath: /db/
|
||||
- name: renovate-logs
|
||||
mountPath: /logs/
|
||||
- name: renovate-gh-app-pem
|
||||
mountPath: /usr/src/app/rpi5-cluster-renovate.2024-07-05.private-key.pem
|
||||
volumes:
|
||||
- name: renovate-db
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/renovate/db
|
||||
type: Directory
|
||||
- name: renovate-logs
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/renovate/logs
|
||||
type: Directory
|
||||
- name: renovate-gh-app-pem
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/renovate/key/rpi5-cluster-renovate.2024-07-05.private-key.pem
|
||||
type: File
|
||||
31
kubernetes/infrastructure/renovate/app/ingress.yaml
Normal file
31
kubernetes/infrastructure/renovate/app/ingress.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: renovate-ingress
|
||||
namespace: renovate
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "renovate.cluster.local"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: renovate
|
||||
port:
|
||||
number: 8899
|
||||
- host: "renovate.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: renovate
|
||||
port:
|
||||
number: 8899
|
||||
18
kubernetes/infrastructure/renovate/app/service.yaml
Normal file
18
kubernetes/infrastructure/renovate/app/service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: renovate
|
||||
namespace: renovate
|
||||
labels:
|
||||
app.kubernetes.io/name: renovate
|
||||
app.kubernetes.io/instance: renovate
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8899
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: renovate
|
||||
app.kubernetes.io/instance: renovate
|
||||
Reference in New Issue
Block a user