Skip to main content

blog

ben.wangzLess than 1 minute

blog

prepare

  1. k8s is ready
  2. argocd is ready and logged in
  3. ingress is ready
  4. cert-manager is ready
    • the clusterissuer named alidns-webhook-letsencrypt is ready

installation

  1. prepare blog.yaml
    • apiVersion: argoproj.io/v1alpha1
      kind: Application
      metadata:
        name: blog
      spec:
        syncPolicy:
          syncOptions:
          - CreateNamespace=true
        project: default
        source:
          repoURL: https://ben-wangz.github.io/helm-chart-mirror/charts
          chart: nginx
          targetRevision: 15.9.0
          helm:
            releaseName: blog
            values: |
              image:
                registry: ghcr.io
                repository: ben-wangz/blog
                tag: main
                pullPolicy: Always
              service:
                type: ClusterIP
              ingress:
                enabled: true
                annotations:
                  kubernetes.io/ingress.class: nginx
                  cert-manager.io/cluster-issuer: alidns-webhook-letsencrypt
                  nginx.ingress.kubernetes.io/rewrite-target: /$1
                hostname: blog.geekcity.tech
                path: /?(.*)
                tls: true
        destination:
          server: https://kubernetes.default.svc
          namespace: application
      
      
  2. apply to k8s
    • kubectl -n argocd apply -f blog.yaml
      
  3. sync by argocd
    • argocd app sync argocd/blog