feat(deployment): add ArgoCD deployment stack
This commit is contained in:
parent
288eb7a91c
commit
8d6335fcf4
3 changed files with 100 additions and 0 deletions
34
argocd-stack/docs.yaml
Normal file
34
argocd-stack/docs.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: docs
|
||||
namespace: argocd
|
||||
labels:
|
||||
env: prod
|
||||
spec:
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
destination:
|
||||
name: in-cluster
|
||||
namespace: docs
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
sources:
|
||||
- repoURL: https://edp.buildth.ing/DevFW-CICD/website-and-documentation
|
||||
targetRevision: HEAD
|
||||
path: argocd-stack/docs/deploy.yaml
|
||||
kustomize:
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
name: docs
|
||||
patch: |-
|
||||
- op: replace
|
||||
path: /spec/template/spec/containers/0/image
|
||||
value: edp.buildth.ing/devfw-cicd/website-and-documentation:$ARGOCD_APP_REVISION
|
||||
|
||||
62
argocd-stack/docs/deploy.yaml
Normal file
62
argocd-stack/docs/deploy.yaml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: docs
|
||||
name: docs
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: docs
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: docs
|
||||
spec:
|
||||
containers:
|
||||
- image: SPECIFIED_BY_KUSTOMIZE
|
||||
name: docs
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 4050
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: docs
|
||||
spec:
|
||||
selector:
|
||||
app: docs
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 4050
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: docs
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: main
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: docs.edp.buildth.ing
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: docs
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
tls:
|
||||
- hosts:
|
||||
- docs.edp.buildth.ing
|
||||
secretName: docs-edp-buildth-ing-tls
|
||||
4
argocd-stack/docs/kustomization.yaml
Normal file
4
argocd-stack/docs/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deploy.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue