diff --git a/clusters/lab/apps/online-boutique.yaml b/clusters/lab/apps/online-boutique.yaml deleted file mode 100644 index fd00701..0000000 --- a/clusters/lab/apps/online-boutique.yaml +++ /dev/null @@ -1,145 +0,0 @@ ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: GitRepository -metadata: - name: online-boutique - namespace: flux-system -spec: - interval: 1h - url: https://github.com/GoogleCloudPlatform/microservices-demo - ref: - branch: main ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: online-boutique - namespace: flux-system -spec: - interval: 1h - targetNamespace: online-boutique - install: - createNamespace: true - chart: - spec: - chart: ./helm-chart - sourceRef: - kind: GitRepository - name: online-boutique - interval: 1h - values: - frontend: - externalService: false - resources: - requests: - cpu: 50m - memory: 64Mi - limits: - cpu: 200m - memory: 128Mi - cartService: - resources: - requests: - cpu: 50m - memory: 64Mi - limits: - cpu: 200m - memory: 128Mi - adService: - resources: - requests: - cpu: 50m - memory: 128Mi - limits: - cpu: 200m - memory: 256Mi - checkoutService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - currencyService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - emailService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - paymentService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - productCatalogService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - recommendationService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - shippingService: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 128Mi - loadGenerator: - resources: - requests: - cpu: 20m - memory: 32Mi - limits: - cpu: 100m - memory: 256Mi ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: online-boutique - namespace: online-boutique - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd -spec: - ingressClassName: traefik - rules: - - host: shop.davidepiu.xyz - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: frontend - port: - number: 80 - tls: - - hosts: - - shop.davidepiu.xyz - secretName: online-boutique-tls diff --git a/clusters/lab/apps/podinfo.yaml b/clusters/lab/apps/podinfo.yaml new file mode 100644 index 0000000..90bfaef --- /dev/null +++ b/clusters/lab/apps/podinfo.yaml @@ -0,0 +1,62 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: podinfo + namespace: flux-system +spec: + interval: 1h + type: oci + url: oci://ghcr.io/stefanprodan/charts +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: podinfo + namespace: flux-system +spec: + interval: 1h + targetNamespace: podinfo + install: + createNamespace: true + chart: + spec: + chart: podinfo + sourceRef: + kind: HelmRepository + name: podinfo + interval: 1h + values: + resources: + requests: + cpu: 10m + memory: 16Mi + limits: + cpu: 100m + memory: 64Mi +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: podinfo + namespace: podinfo + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd +spec: + ingressClassName: traefik + rules: + - host: app.davidepiu.xyz + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: podinfo + port: + number: 9898 + tls: + - hosts: + - app.davidepiu.xyz + secretName: podinfo-tls