Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 2.08 KB

deployment-argocd.md

File metadata and controls

54 lines (49 loc) · 2.08 KB

Golang Deployment - Deployment with ArgoCD Pipeline

Kubernetes Deployment for Simple Golang API

goreport all contributors tags docker pulls download all view clone issues pull requests forks stars license


Example CI/CD Script cicd-argocd.yml

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: bookstore
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/devopscorner/golang-deployment.git
    path: manifests
    targetRevision: HEAD
  destination:
    server: https://your-kubernetes-server
    namespace: bookstore
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - Validate=false
  healthChecks:
    - type: DeploymentRollout
      deploymentName: bookstore-deployment
  ignoreDifferences:
    - kind: Service
      jsonPointers:
        - /spec/clusterIP
    - kind: Deployment
      jsonPointers:
        - /spec/selector/matchLabels
  appVersion: ${VERSION}