chore(argo): add ingress
This commit is contained in:
parent
c624697879
commit
09fbc7e597
3 changed files with 70 additions and 13 deletions
17
bootstrap/argo-cd/argogrpc.service.yaml
Normal file
17
bootstrap/argo-cd/argogrpc.service.yaml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
labels:
|
||||
app: argogrpc
|
||||
name: argogrpc
|
||||
spec:
|
||||
ports:
|
||||
- name: "443"
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app.kubernetes.io/name: argocd-server
|
||||
sessionAffinity: None
|
||||
type: NodePort
|
||||
36
bootstrap/argo-cd/ingress.yaml
Normal file
36
bootstrap/argo-cd/ingress.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-issuer
|
||||
gethomepage.dev/enabled: "true"
|
||||
gethomepage.dev/name: "ArgoCD"
|
||||
gethomepage.dev/description: "Manage k8s applications"
|
||||
gethomepage.dev/group: "System"
|
||||
name: argocd
|
||||
labels:
|
||||
name: argocd
|
||||
spec:
|
||||
rules:
|
||||
- host: argocd.int.nc.landry.land
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
service:
|
||||
name: argogrpc
|
||||
port:
|
||||
number: 443
|
||||
pathType: Prefix
|
||||
- path: /
|
||||
backend:
|
||||
service:
|
||||
name: argocd-server
|
||||
port:
|
||||
number: 443
|
||||
pathType: Prefix
|
||||
|
||||
tls:
|
||||
- hosts:
|
||||
- argocd.int.nc.landry.land
|
||||
secretName: argocd-tls
|
||||
|
|
@ -1,17 +1,21 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
configMapGenerator:
|
||||
- behavior: merge
|
||||
literals:
|
||||
- |
|
||||
repository.credentials=- passwordSecret:
|
||||
key: git_token
|
||||
name: autopilot-secret
|
||||
url: https://git.nc.landry.land/
|
||||
usernameSecret:
|
||||
key: git_username
|
||||
name: autopilot-secret
|
||||
name: argocd-cm
|
||||
kind: Kustomization
|
||||
namespace: argocd
|
||||
|
||||
configMapGenerator:
|
||||
- name: argocd-cm
|
||||
behavior: merge
|
||||
literals:
|
||||
- url=https://argocd.int.nc.landry.land
|
||||
- |
|
||||
repository.credentials=- passwordSecret:
|
||||
key: git_token
|
||||
name: autopilot-secret
|
||||
url: https://git.nc.landry.land/
|
||||
usernameSecret:
|
||||
key: git_username
|
||||
name: autopilot-secret
|
||||
resources:
|
||||
- github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=v0.4.17
|
||||
- github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=v0.4.17
|
||||
- ./ingress.yaml
|
||||
- ./argogrpc.service.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue