1 Commits

Author SHA1 Message Date
ce5746b6dd Added Flux receiver to kustomization 2025-07-10 23:15:18 +02:00
5 changed files with 10 additions and 31 deletions

View File

@ -81,7 +81,7 @@ spec:
spec: spec:
containers: containers:
- name: api - name: api
image: marcin00.azurecr.io/user-microservice:a09f4cfac66eae1014fdd47728fabcdd1d1d9475 image: marcin00.azurecr.io/user-microservice:d855e795e2706e235b397a73ca5f0e068ee8eec4
ports: ports:
- containerPort: 80 - containerPort: 80
env: env:

View File

@ -1,17 +1,14 @@
apiVersion: notification.toolkit.fluxcd.io/v1 apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Receiver kind: Receiver
metadata: metadata:
name: gitea-receiver name: gitea-receiver
namespace: flux-system namespace: flux-system
spec: spec:
type: github type: git
events: events:
- "ping" - push
- "push" resources:
- kind: GitRepository
name: user-microservice-repo
secretRef: secretRef:
name: webhook-token name: webhook-token
resources:
- apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
name: user-microservice-repo
namespace: flux-system

View File

@ -1,20 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: flux-receiver
namespace: flux-system
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
ingressClassName: nginx
rules:
- host: flux.marcin00.pl
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: notification-controller
port:
number: 80

View File

@ -11,3 +11,5 @@ spec:
kind: GitRepository kind: GitRepository
name: user-microservice-repo name: user-microservice-repo
targetNamespace: user-microservice targetNamespace: user-microservice
resources:
- flux-receiver.yaml

View File

@ -7,4 +7,4 @@ spec:
interval: 1m interval: 1m
url: https://gitea.marcin00.pl/pikram/user-microservice-deploy.git url: https://gitea.marcin00.pl/pikram/user-microservice-deploy.git
ref: ref:
branch: woodpecker-fluxcd-deploy branch: fluxcd