1
0
mirror of https://github.com/thomiceli/opengist synced 2024-11-08 12:55:50 +01:00
opengist/deploy
Thomas Miceli 9b0c06d98b v1.7.2
2024-05-05 00:56:56 +02:00
..
deployment.yaml feat: add kubernetes deployment with kustomize (#258) 2024-04-24 21:01:17 +02:00
ingress.yaml feat: add kubernetes deployment with kustomize (#258) 2024-04-24 21:01:17 +02:00
kustomization.yaml feat: add kubernetes deployment with kustomize (#258) 2024-04-24 21:01:17 +02:00
pvc.yaml feat: add kubernetes deployment with kustomize (#258) 2024-04-24 21:01:17 +02:00
README.md v1.7.2 2024-05-05 00:56:56 +02:00
service.yaml feat: add kubernetes deployment with kustomize (#258) 2024-04-24 21:01:17 +02:00

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.7.2

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

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