<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CICD :: Ay Docs</title>
    <link>https://ops.docs.72602.space/installation/cicd/index.html</link>
    <description>Articles Install Argo CD Install Argo WorkFlow Install Argo Event Reloader FQA Q1: difference between docker\podmn\buildah You can add standard markdown syntax:&#xA;multiple paragraphs bullet point lists emphasized, bold and even bold emphasized text links etc. ...and even source code the possibilities are endless (almost - including other shortcodes may or may not work)</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 07 Mar 2024 15:00:59 +0800</lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/installation/cicd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Install Argo CD</title>
      <link>https://ops.docs.72602.space/installation/cicd/argocd/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/installation/cicd/argocd/index.html</guid>
      <description>Preliminary Kubernetes is installed; if not, check 🔗link Helm binary is installed; if not, check 🔗link 1. install argoCD binary Install the argocd CLI first so you can authenticate, sync applications, and verify deployment status from your terminal.&#xA;MIRROR=&#34;files.m.daocloud.io/&#34; VERSION=v3.1.8 [ $(uname -m) = x86_64 ] &amp;&amp; curl -sSLo argocd &#34;https://${MIRROR}github.com/argoproj/argo-cd/releases/download/${VERSION}/argocd-linux-amd64&#34; [ $(uname -m) = aarch64 ] &amp;&amp; curl -sSLo argocd &#34;https://${MIRROR}github.com/argoproj/argo-cd/releases/download/${VERSION}/argocd-linux-arm64&#34; chmod u+x argocd mkdir -p ${HOME}/bin mv -f argocd ${HOME}/bin [Optional] add to PATH&#xA;cat &gt;&gt; ~/.bashrc &lt;&lt; EOF export PATH=$PATH:/root/bin EOF source ~/.bashrc 2. install components Choose one installation path below. Helm is recommended when you want versioned upgrades and repeatable configuration.</description>
    </item>
    <item>
      <title>Install Argo WorkFlow</title>
      <link>https://ops.docs.72602.space/installation/cicd/argoworkflow/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/installation/cicd/argoworkflow/index.html</guid>
      <description>⚠️ ZJ Lab Only — Argo Workflow is only deployed in the ZJ Lab environment (ay.dev). It is not deployed in the 72602 cluster.&#xA;Preliminary Kubernetes is installed; if not, check 🔗link Argo CD is installed; if not, check 🔗link cert-manager has installed on argocd and the clusterissuer has a named self-signed-ca-issuer, if not check 🔗link 0. create workflow related namespace kubectl get namespace business-workflows &gt; /dev/null 2&gt;&amp;1 || kubectl create namespace business-workflows 1. prepare argo-workflows.yaml content yaml shortcut apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: argo-workflows spec: syncPolicy: syncOptions: - CreateNamespace=true project: default source: repoURL: https://argoproj.github.io/argo-helm chart: argo-workflows targetRevision: 0.45.27 helm: releaseName: argo-workflows values: | crds: install: true keep: false singleNamespace: false controller: image: registry: m.daocloud.io/quay.io workflowNamespaces: - business-workflows executor: image: registry: m.daocloud.io/quay.io workflow: serviceAccount: create: true rbac: create: true server: enabled: true image: registry: m.daocloud.io/quay.io ingress: enabled: true ingressClassName: nginx annotations: cert-manager.io/cluster-issuer: self-signed-ca-issuer nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/use-regex: &#34;true&#34; hosts: - argo-workflows.dev.72602.online paths: - /?(.*) pathType: ImplementationSpecific tls: - secretName: argo-workflows.dev.72602.online-tls hosts: - argo-workflows.dev.72602.online authModes: - server - client sso: enabled: false destination: server: https://kubernetes.default.svc namespace: workflows kubectl -n argocd apply -f - &lt;&lt; EOF apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: argo-workflows spec: syncPolicy: syncOptions: - CreateNamespace=true project: default source: repoURL: https://argoproj.github.io/argo-helm chart: argo-workflows targetRevision: 0.45.27 helm: releaseName: argo-workflows values: | crds: install: true keep: false singleNamespace: false controller: image: registry: m.daocloud.io/quay.io workflowNamespaces: - business-workflows executor: image: registry: m.daocloud.io/quay.io workflow: serviceAccount: create: true rbac: create: true server: enabled: true image: registry: m.daocloud.io/quay.io ingress: enabled: true ingressClassName: nginx annotations: cert-manager.io/cluster-issuer: self-signed-ca-issuer nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/use-regex: &#34;true&#34; hosts: - argo-workflows.dev.72602.online paths: - /?(.*) pathType: ImplementationSpecific tls: - secretName: argo-workflows.dev.72602.online-tls hosts: - argo-workflows.dev.72602.online authModes: - server - client sso: enabled: false destination: server: https://kubernetes.default.svc namespace: workflows EOF 2. install argo workflow binary 3. [Optional] apply to k8s kubectl -n argocd apply -f argo-workflows.yaml 4. sync by argocd argocd app sync argocd/argo-workflows 5. submit a test workflow argo -n business-workflows submit https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml --serviceaccount=argo-workflow 6. check workflow status # list all flows argo -n business-workflows list # get specific flow status argo -n business-workflows get &lt;$flow_name&gt; # get specific flow log argo -n business-workflows logs &lt;$flow_name&gt; # get specific flow log continuously argo -n business-workflows logs &lt;$flow_name&gt; --watch</description>
    </item>
    <item>
      <title>Install Argo Event</title>
      <link>https://ops.docs.72602.space/installation/cicd/argoevent/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/installation/cicd/argoevent/index.html</guid>
      <description>Preliminary Kubernetes is installed; if not, check 🔗link Argo CD is installed; if not, check 🔗link 1. prepare argo-events.yaml apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: argo-events spec: syncPolicy: syncOptions: - CreateNamespace=true project: default source: repoURL: https://argoproj.github.io/argo-helm chart: argo-events targetRevision: 2.4.2 helm: releaseName: argo-events values: | openshift: false createAggregateRoles: true crds: install: true keep: true global: image: repository: m.daocloud.io/quay.io/argoproj/argo-events controller: replicas: 1 resources: {} webhook: enabled: true replicas: 1 port: 12000 resources: {} extraObjects: - apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: cert-manager.io/cluster-issuer: self-signed-ca-issuer nginx.ingress.kubernetes.io/rewrite-target: /$1 labels: app.kubernetes.io/instance: argo-events app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: argo-events-events-webhook app.kubernetes.io/part-of: argo-events argocd.argoproj.io/instance: argo-events name: argo-events-webhook spec: ingressClassName: nginx rules: - host: argo-events.webhook.dev.72602.online http: paths: - backend: service: name: events-webhook port: number: 12000 path: /?(.*) pathType: ImplementationSpecific tls: - hosts: - argo-events.webhook.dev.72602.online secretName: argo-events-webhook-tls destination: server: https://kubernetes.default.svc namespace: argocd 4. apply to k8s kubectl -n argocd apply -f argo-events.yaml 5. sync by argocd argocd app sync argocd/argo-events</description>
    </item>
    <item>
      <title>Reloader</title>
      <link>https://ops.docs.72602.space/installation/cicd/reloader/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ops.docs.72602.space/installation/cicd/reloader/index.html</guid>
      <description>Install ​ 📦helm✅ 🗃️k8s Details helm repo add stakater https://stakater.github.io/stakater-charts helm repo update helm install reloader stakater/reloader Using AY Helm Mirror for more information, you can check 🔗https://aaronyang0628.github.io/helm-chart-mirror/&#xA;helm repo add ay-helm-mirror https://aaronyang0628.github.io/helm-chart-mirror/charts helm repo update helm -n basic-components install reloader stakater/reloader Details kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml Using AY Gitee Mirror kubectl apply -f https://gitee.com/aaron2333/aaaa/raw/main/bbbb.yaml Using AY ACR Mirror docker pull crpi-wixjy6gci86ms14e.cn-hongkong.personal.cr.aliyuncs.com/ay-mirror/xxxx Using DaoCloud Mirror docker pull m.daocloud.io/docker.io/library/xxxx Usage For a Deployment called foo have a ConfigMap called foo-configmap. Then add this annotation to main metadata of your Deployment configmap.reloader.stakater.com/reload: &#34;foo-configmap&#34;</description>
    </item>
  </channel>
</rss>