diff --git a/kustomize/imagepolicy.yaml b/kustomize/imagepolicy.yaml deleted file mode 100644 index e231643..0000000 --- a/kustomize/imagepolicy.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: image.toolkit.fluxcd.io/v1beta1 -kind: ImagePolicy -metadata: - name: pomodoro - namespace: pomodoro -spec: - imageRepositoryRef: - name: pomodoro - namespace: pomodoro - filterTags: - pattern: "^(?P.*)$" - extract: "$ts" - policy: - numerical: - order: asc diff --git a/kustomize/imageregistry.yaml b/kustomize/imageregistry.yaml deleted file mode 100644 index 361a01f..0000000 --- a/kustomize/imageregistry.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -apiVersion: image.toolkit.fluxcd.io/v1beta1 -kind: ImageRepository -metadata: - name: pomodoro - namespace: pomodoro -spec: - image: mstruebing/elmodoro - interval: 1m0s diff --git a/kustomize/imageupdateautomation.yaml b/kustomize/imageupdateautomation.yaml deleted file mode 100644 index 14cbe63..0000000 --- a/kustomize/imageupdateautomation.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -apiVersion: image.toolkit.fluxcd.io/v1beta1 -kind: ImageUpdateAutomation -metadata: - name: pomodoro - namespace: pomodoro -spec: - git: - checkout: - ref: - branch: main - commit: - author: - email: fluxcdbot@users.noreply.github.com - name: fluxcdbot - messageTemplate: "{{range .Updated.Images}}{{println .}}{{end}}" - push: - branch: main - interval: 1m0s - sourceRef: - kind: GitRepository - name: pomodoro - namespace: flux-system - update: - path: ./kustomize - strategy: Setters diff --git a/kustomize/issuer.yaml b/kustomize/issuer.yaml deleted file mode 100644 index b023c07..0000000 --- a/kustomize/issuer.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -apiVersion: v1 -kind: List -items: - - apiVersion: cert-manager.io/v1 - kind: Issuer - metadata: - name: letsencrypt-prod - namespace: pomodoro - spec: - acme: - email: letsencrypt@maex.me - privateKeySecretRef: - name: letsencrypt-prod - server: https://acme-v02.api.letsencrypt.org/directory - solvers: - - http01: - ingress: {} - selector: {} - - diff --git a/kustomize/kustomization.yaml b/kustomize/kustomization.yaml deleted file mode 100644 index baf513a..0000000 --- a/kustomize/kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - namespace.yaml - - issuer.yaml - - pomodoro.yaml - - imageregistry.yaml - - imagepolicy.yaml - - imageupdateautomation.yaml diff --git a/kustomize/namespace.yaml b/kustomize/namespace.yaml deleted file mode 100644 index 7c6e939..0000000 --- a/kustomize/namespace.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: pomodoro - - diff --git a/kustomize/pomodoro.yaml b/kustomize/pomodoro.yaml deleted file mode 100644 index 16b884e..0000000 --- a/kustomize/pomodoro.yaml +++ /dev/null @@ -1,62 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: pomodoro - namespace: pomodoro -spec: - replicas: 2 - selector: - matchLabels: - app: pomodoro - template: - metadata: - labels: - app: pomodoro - spec: - containers: - - image: mstruebing/elmodoro:1653583569 # {"$imagepolicy": "pomodoro:pomodoro"} - imagePullPolicy: Always - name: pomodoro - ---- -apiVersion: v1 -kind: Service -metadata: - name: pomodoro - namespace: pomodoro -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 80 - selector: - app: pomodoro - ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - cert-manager.io/issuer: letsencrypt-prod - kubernetes.io/ingress.class: traefik - traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd - name: pomodoro - namespace: pomodoro -spec: - rules: - - host: pomodoro.maex.me - http: - paths: - - backend: - service: - name: pomodoro - port: - name: http - path: / - pathType: Prefix - tls: - - hosts: - - pomodoro.maex.me - secretName: pomodoro-maex-me-tls