add wishlist

This commit is contained in:
Kasper Juul Hermansen 2022-05-08 20:58:33 +02:00
parent 95ecc1db15
commit 4acd2f5805
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 74 additions and 2 deletions

View File

@ -0,0 +1,57 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wishlist-ingress
annotations:
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: le
spec:
tls:
- hosts:
- wishlist.kjuulh.app
rules:
- host: wishlist.kjuulh.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: wishlist-service
port:
number: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wishlist-deployment
labels:
app: wishlist
spec:
replicas: 3
selector:
matchLabels:
app: wishlist
template:
metadata:
labels:
app: wishlist
spec:
containers:
- name: wishlist
image: kasperhermansen/wishlist-2022
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: wishlist-service
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: wishlist

View File

@ -5,11 +5,11 @@ metadata:
name: podinfo name: podinfo
namespace: flux-system namespace: flux-system
spec: spec:
interval: 5m0s interval: 10m0s
retryInterval: 30s
path: ./kustomize path: ./kustomize
prune: true prune: true
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: podinfo name: podinfo
targetNamespace: default targetNamespace: default

View File

@ -0,0 +1,15 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: wishlist
namespace: wishlist
spec:
interval: 10m0s
retryInterval: 30s
path: ./clank/apps/prod/wishlist
prune: true
sourceRef:
kind: GitRepository
name: apps
targetNamespace: default