opengist/deploy/README.md
Thomas Miceli 4c5a7bda63
Some checks failed
Go CI / Lint (push) Failing after 1s
Go CI / Check (push) Successful in 25s
Go CI / Test (push) Failing after 0s
Go CI / Build (push) Has been cancelled
v1.8.4
2024-12-16 01:46:26 +01:00

1.1 KiB

kustomize

Simple

kustomization.yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
  name: opengist

resources:
  - https://github.com/thomiceli/opengist/deploy/

Full example

kustomization.yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
  name: opengist

namespace: opengist

resources:
  - namespace.yaml
  - https://github.com/thomiceli/opengist/deploy/?ref:v1.8.4

images:
  - name: ghcr.io/thomiceli/opengist
    newTag: 1.8.4

patches:
  # Add your ingress
  - path: ingress.yaml
  - patch: |-
      - op: add
        path: /spec/rules/0/host
        value: opengist.mydomain.com      
    target:
      group: networking.k8s.io
      version: v1
      kind: Ingress
      name: opengist

namespace.yaml:

apiVersion: v1
kind: Namespace
metadata:
  name: opengist

ingress.yaml:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: opengist
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - opengist.mydomain.com
      secretName: opengist-tls