yyvf22 pushed to branch main at Root / Kubernetes / FluxCD

Commits:

3 changed files:

Changes:

  • apps/base/netbox/helmrelease.yaml
    ... ... @@ -41,9 +41,6 @@ spec:
    41 41
           repository: root/netbox
    
    42 42
           pullPolicy: Always
    
    43 43
           digest: "sha256:734fbf94e4e48cd32b1c2de5c75e191a2c902fe2ef8b807ea814346d1949deaa"
    
    44
    -    allowedHosts:
    
    45
    -      - netbox.k8sstage.c3sl.ufpr.br
    
    46
    -      - netbox.c3sl.ufpr.br
    
    47 44
         customValidators:
    
    48 45
           virtualization.virtualmachine:
    
    49 46
             - validators.BackupValidator
    
    ... ... @@ -82,7 +79,6 @@ spec:
    82 79
             menu_name: DNS
    
    83 80
           netbox_proxmox_sync:
    
    84 81
             netbox:
    
    85
    -          domain: netbox.k8sstage.c3sl.ufpr.br
    
    86 82
               port: 443
    
    87 83
               ssl: true
    
    88 84
               settings:
    
    ... ... @@ -94,35 +90,6 @@ spec:
    94 90
             proxmox:
    
    95 91
               port: 443
    
    96 92
               ssl: true
    
    97
    -    ingress:
    
    98
    -      enabled: true
    
    99
    -      className: cilium
    
    100
    -      annotations:
    
    101
    -        cert-manager.io/cluster-issuer: letsencrypt-dns01
    
    102
    -      hosts:
    
    103
    -        - host: netbox.k8sstage.c3sl.ufpr.br
    
    104
    -          paths:
    
    105
    -            - path: /
    
    106
    -              pathType: Prefix
    
    107
    -              backend:
    
    108
    -                service:
    
    109
    -                  name: netbox
    
    110
    -                  port:
    
    111
    -                    number: 80
    
    112
    -        - host: netbox.c3sl.ufpr.br
    
    113
    -          paths:
    
    114
    -            - path: /
    
    115
    -              pathType: Prefix
    
    116
    -              backend:
    
    117
    -                service:
    
    118
    -                  name: netbox
    
    119
    -                  port:
    
    120
    -                    number: 80
    
    121
    -      tls:
    
    122
    -        - secretName: netbox-tls
    
    123
    -          hosts:
    
    124
    -            - netbox.k8sstage.c3sl.ufpr.br
    
    125
    -            - netbox.c3sl.ufpr.br
    
    126 93
         postgresql:
    
    127 94
           enabled: false
    
    128 95
       valuesFrom:
    

  • apps/stage/kustomization.yaml
    ... ... @@ -12,3 +12,8 @@ resources:
    12 12
       - ../base/wordpress
    
    13 13
       - ./wordpress/ing.yaml
    
    14 14
       - ../base/netbox
    
    15
    +patches:
    
    16
    +  - path: ./netbox/helmrelease.yaml
    
    17
    +    target:
    
    18
    +      kind: HelmRelease
    
    19
    +      name: netbox

  • apps/stage/netbox/helmrelease.yaml
    1
    +apiVersion: helm.toolkit.fluxcd.io/v2beta1
    
    2
    +kind: HelmRelease
    
    3
    +metadata:
    
    4
    +  name: netbox
    
    5
    +  namespace: netbox
    
    6
    +spec:
    
    7
    +  interval: 1m
    
    8
    +  chart:
    
    9
    +    spec:
    
    10
    +      chart: netbox
    
    11
    +      sourceRef:
    
    12
    +        kind: HelmRepository
    
    13
    +        name: netbox
    
    14
    +  values:
    
    15
    +    allowedHosts:
    
    16
    +      - netbox.k8sstage.c3sl.ufpr.br
    
    17
    +      - netbox.c3sl.ufpr.br
    
    18
    +    pluginsConfig:
    
    19
    +      netbox_proxmox_sync:
    
    20
    +        netbox:
    
    21
    +          domain: netbox.k8sstage.c3sl.ufpr.br
    
    22
    +    ingress:
    
    23
    +      enabled: true
    
    24
    +      className: cilium
    
    25
    +      annotations:
    
    26
    +        cert-manager.io/cluster-issuer: letsencrypt-dns01
    
    27
    +      hosts:
    
    28
    +        - host: netbox.k8sstage.c3sl.ufpr.br
    
    29
    +          paths:
    
    30
    +            - path: /
    
    31
    +              pathType: Prefix
    
    32
    +              backend:
    
    33
    +                service:
    
    34
    +                  name: netbox
    
    35
    +                  port:
    
    36
    +                    number: 80
    
    37
    +        - host: netbox.c3sl.ufpr.br
    
    38
    +          paths:
    
    39
    +            - path: /
    
    40
    +              pathType: Prefix
    
    41
    +              backend:
    
    42
    +                service:
    
    43
    +                  name: netbox
    
    44
    +                  port:
    
    45
    +                    number: 80
    
    46
    +      tls:
    
    47
    +        - secretName: netbox-tls
    
    48
    +          hosts:
    
    49
    +            - netbox.k8sstage.c3sl.ufpr.br
    
    50
    +            - netbox.c3sl.ufpr.br