Λογότυπο Complete Cicd Pipeline Deployment For Kubernetes From Scratch

Complete Cicd Pipeline Deployment For Kubernetes From Scratch

Κοινότητα
selvarajmurugesan90
complete-cicd-pipeline-deployment-for-kubernetes-from-scratch

Builds a complete CI/CD pipeline for a Kubernetes-targeted service from an empty repo — source checkout, container image build, SCA/SAST security gates, registry push, and a deploy step that ends at a GitOps handoff (committing a new image tag to a manifests repo) rather than a direct kubectl apply or helm upgrade against the cluster. Use when the user asks to "build a full CI/CD pipeline for Kubernetes from scratch," "set up CI/CD that ends in a GitOps commit, not a cluster deploy," "wire a container build pipeline into Argo CD/Flux," or "go from an empty repo to a Kubernetes service deployed via GitOps end-to-end."

Επισκόπηση

Εκδότηςselvarajmurugesan90
Αποθετήριοops-engineering-skills
Όνομα δεξιότηταςcomplete-cicd-pipeline-deployment-for-kubernetes-from-scratch
Αστέρια
44
Διακλαδώσεις
18
Συνοδευτικά αρχεία
Μόνο οδηγίες
Άδεια χρήσηςApache-2.0
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό selvarajmurugesan90. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Complete Cicd Pipeline Deployment For Kubernetes From Scratch στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/cicd-tooling/skills/complete-cicd-pipeline-deployment-for-kubernetes-from-scratch
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills.git /tmp/ops-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/ops-engineering-skills/plugins/cicd-tooling/skills/complete-cicd-pipeline-deployment-for-kubernetes-from-scratch .claude/skills/complete-cicd-pipeline-deployment-for-kubernetes-from-scratch
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Complete CI/CD Pipeline Deployment for Kubernetes, From Scratch

Purpose

A Kubernetes-targeted pipeline's defining mechanical trait is where its job ends: it builds a container image, gates it, and pushes it to a registry — but it does not touch the cluster. The last step is a Git commit (a new image tag in a manifests/config repo), and a separate in-cluster GitOps operator (Argo CD/Flux) performs the actual apply. This is the opposite shape from the VM-based and serverless variants of this skill, both of which end with the pipeline itself calling a deploy API against live infrastructure. Every individual mechanic here — the Dockerfile, the SAST/SCA tool invocations, the GitOps repo structure — already has its own deep skill; this one sequences them into one coherent "empty repo to running-via-GitOps" walkthrough and is explicit about the handoff boundary so a well-meaning "just add a deploy step" doesn't reintroduce direct cluster credentials into CI.

When to use

  • A new Kubernetes-targeted service has no pipeline yet, and the team wants source-to-GitOps-handoff wired up in one pass rather than individually bolting on build, scan, and deploy steps over time.
  • An existing pipeline currently ends with kubectl apply/helm upgrade run directly from CI, and the user wants to migrate it to a GitOps handoff instead.
  • The user wants to understand exactly where CI's responsibility ends and the GitOps operator's begins for a containerized workload.
  • Standing up the SAST/SCA gate sequence specifically for a container-image build (as opposed to a zip/layer or AMI-baking build).

Prerequisites & environment

  • A Git host and CI platform already available — github-actions-single-repo-workflows or jenkins-declarative-pipeline-per-repo cover the concrete pipeline-authoring mechanics this skill sequences; either works, and examples below show GitHub Actions with a Jenkins note where the shape differs.
  • A container registry the pipeline can push to (GHCR, ECR, ACR, Artifact Registry, or a self-hosted Harbor) with least-privilege push credentials stored as CI secrets.
  • A separate GitOps config/manifests repo already set up — per gitops-workflow — with an Argo CD Application/ApplicationSet (or Flux Kustomization) already watching it. This skill assumes that operator-side setup exists; see the four complete-gitops-argocd-deployment-on-*-from-scratch skills in gitops-argo-ecosystem if it doesn't yet.
  • Write access (a bot/service account, ideally opening a PR rather than pushing directly) from the application repo's CI to the config repo.
  • SAST/SCA tooling chosen per sast-integration and software-composition-analysis-sca.

Step-by-step guidance

Phase 1 — Source and trigger scoping

Standard trigger/concurrency setup per ci-cd-pipeline-design and github-actions-single-repo-workflows: run the full pipeline on PRs and pushes to main, path-filtered in a monorepo.

Phase 2 — Build the container image

Follow container-build-and-release in full for the Dockerfile itself (multi-stage, non-root, pinned base image, immutable tagging by commit SHA). This is the Kubernetes-specific build artifact — contrast with Phase 2 of the serverless variant of this skill (a zip/layer, no Dockerfile at all) and the VM variant (a full machine image, not a container layer).

Phase 3 — SAST and SCA gates, scoped to the diff

Per sast-integration and software-composition-analysis-sca, run diff-aware static analysis and a dependency/lockfile scan before the image is pushed anywhere — failing fast on a critical finding before spending registry storage and pipeline minutes on an image that won't ship:

yaml
jobs:
  sast:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - run: semgrep ci --config p/owasp-top-ten --baseline-commit "${{ github.event.pull_request.base.sha }}"
  sca:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: aquasecurity/trivy-action@0.24.0
        with: { scan-type: 'fs', severity: 'CRITICAL,HIGH', exit-code: '1', ignore-unfixed: true }

Phase 4 — Push the built image to the registry

Only after Phase 3 passes:

yaml
  build-and-push:
    needs: [sast, sca]
    runs-on: ubuntu-latest
    permissions: { contents: read, packages: write }
    steps:
      - uses: actions/checkout@v4
      - uses: docker/setup-buildx-action@v3
      - uses: docker/login-action@v3
        with: { registry: ghcr.io, username: "${{ github.actor }}", password: "${{ secrets.GITHUB_TOKEN }}" }
      - uses: docker/build-push-action@v6
        with:
          context: .
          push: true
          tags: |
            ghcr.io/example/payments-api:${{ github.sha }}

A follow-on image scan (per software-composition-analysis-sca's container-image scanning step) on the pushed digest catches base-image CVEs the filesystem scan in Phase 3 couldn't see.

Phase 5 — The deploy step: a GitOps handoff, not a cluster touch

This is the defining step. The pipeline's last action is a Git commit against the manifests repo, bumping the image tag/digest in the relevant overlay — never a direct kubectl apply, helm upgrade, or any command carrying a cluster credential:

yaml
  update-manifests:
    needs: build-and-push
    if: github.ref == 'refs/heads/main'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          repository: example/gitops-config
          token: ${{ secrets.GITOPS_REPO_TOKEN }}
      - run: |
          cd apps/payments-api/overlays/staging
          kustomize edit set image payments-api=ghcr.io/example/payments-api:${{ github.sha }}
          git config user.name "ci-bot"
          git config user.email "ci-bot@example.com"
          git commit -am "payments-api: bump to ${{ github.sha }}"
          git push

GITOPS_REPO_TOKEN is scoped only to the manifests repo (never a cluster kubeconfig or cloud credential) — the in-cluster Argo CD Application/ApplicationSet (see the relevant complete-gitops-argocd-deployment-on-*-from-scratch skill) picks up this commit and performs the actual kubectl apply on its own reconciliation loop, per gitops-workflow.

Phase 6 — Verify the handoff, not the deploy

The pipeline's own success/failure only reflects "the manifests repo was updated correctly" — it cannot and should not report "the cluster is running the new version," since that's the GitOps operator's job. Separately, monitor argocd app get payments-api-staging (or a notification wired from Argo CD/Flux) for the actual rollout outcome.

Best practices

  • Never let this pipeline hold a cluster kubeconbig, a cloud IAM role with cluster-apply permissions, or any credential capable of a direct kubectl apply — the entire point of the GitOps handoff is that CI's blast radius, if compromised, is "can propose a manifest change," not "can directly mutate the cluster."
  • Prefer opening a PR against the manifests repo (with required review) for production overlays, and a direct commit only for lower environments (staging/dev) where the team has decided fast, unreviewed promotion is acceptable — mirroring the sync-policy trust progression in argocd-application-configuration.
  • Tag the image with the exact commit SHA the manifests-repo commit references, so the Git history of the config repo is a complete, traceable audit trail of what's running where at any point in time.
  • Run the container-image scan (post-push, on the actual digest) as a separate gate from the pre-push filesystem SCA scan — they catch different things (application dependencies vs. base-image OS packages).
  • Keep the "update manifests" step's credential (a fine-grained PAT or deploy key scoped to one repo) rotated and audited exactly like any other CI secret, per secrets-management.

Common pitfalls

  • Symptom: Someone adds a "quick fix" kubectl apply step directly to the pipeline "just for this one hotfix," and it works — until the next regular GitOps sync reverts the hotfix moments later because the config repo was never updated to match. Fix: This is exactly the sequencing failure this skill exists to prevent — any change to what's running must go through the manifests repo commit (Phase 5), even for an emergency fix; a direct kubectl apply against a selfHeal: true Application is reverted on the next reconciliation, per the drift-handling behavior in gitops-workflow.

  • Symptom: The pipeline reports green ("deploy succeeded") but the service in the cluster is still running the old version an hour later. Fix: "Pipeline green" here only means the manifests-repo commit landed — it says nothing about whether Argo CD/Flux actually reconciled it. Check argocd app get <app> (or Flux's equivalent) separately; if it's OutOfSync/stuck, that's a GitOps-operator issue (see argocd-application-configuration), not a pipeline bug.

  • Symptom: Two different pipelines (the app's own CI, and a separate "promote to prod" job) both push commits to the same manifests-repo overlay, and their commits race, silently overwriting each other's image tag bump. Fix: Give exactly one pipeline stage ownership of writing to a given overlay path per environment, and have any "promotion" step read the currently-deployed staging tag and bump prod to that exact value rather than independently recomputing it — avoid two automated writers racing on the same file.

  • Symptom: The SAST/SCA gates (Phase 3) are placed after the image build and push (Phase 4) "to save a rebuild if it fails," and a vulnerable image sits in the registry (and is briefly pullable) before the gate result comes back. Fix: Order gates before the push, not after — a failed post-push gate still leaves a bad image in the registry for however long it takes to notice and delete it; scanning the filesystem/dependencies before docker build/push (Phase 3 before Phase 4) means a failing gate never produces a pushed artifact at all.

Worked example

Scenario: payments-api, a Node.js service, gets its first full pipeline: PR-time SAST/SCA, main-branch image build/push to GHCR, and a GitOps handoff bumping the staging overlay in example/gitops-config.

.github/workflows/ci-cd.yml (abbreviated to the phases above; full Dockerfile/scan config lives in the linked skills):

yaml
name: ci-cd
on:
  pull_request: { branches: [main] }
  push: { branches: [main] }

jobs:
  sast:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - run: semgrep ci --config p/owasp-top-ten --baseline-commit "${{ github.event.pull_request.base.sha || github.event.before }}"

  sca:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: aquasecurity/trivy-action@0.24.0
        with: { scan-type: 'fs', severity: 'CRITICAL,HIGH', exit-code: '1' }

  build-and-push:
    needs: [sast, sca]
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    permissions: { contents: read, packages: write }
    steps:
      - uses: actions/checkout@v4
      - uses: docker/login-action@v3
        with: { registry: ghcr.io, username: "${{ github.actor }}", password: "${{ secrets.GITHUB_TOKEN }}" }
      - uses: docker/build-push-action@v6
        with: { push: true, tags: "ghcr.io/example/payments-api:${{ github.sha }}" }

  update-manifests:
    needs: build-and-push
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { repository: example/gitops-config, token: "${{ secrets.GITOPS_REPO_TOKEN }}" }
      - run: |
          cd apps/payments-api/overlays/staging
          kustomize edit set image payments-api=ghcr.io/example/payments-api:${{ github.sha }}
          git config user.name "ci-bot" && git config user.email "ci-bot@example.com"
          git commit -am "payments-api: bump to ${{ github.sha }}"
          git push

Argo CD's payments-api-staging Application (automated: {prune: true, selfHeal: true} per argocd-application-configuration) picks up the new commit on its next poll and reconciles the cluster — the CI pipeline itself never held a cluster credential at any point.

Cross-references

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Complete Cicd Pipeline Deployment For Kubernetes From Scratch;

Builds a complete CI/CD pipeline for a Kubernetes-targeted service from an empty repo — source checkout, container image build, SCA/SAST security gates, registry push, and a deploy step that ends at a GitOps handoff (committing a new image tag to a manifests repo) rather than a direct kubectl apply or helm upgrade against the cluster. Use when the user asks to "build a full CI/CD pipeline for Kubernetes from scratch," "set up CI/CD that ends in a GitOps commit, not a cluster deploy," "wire a container build pipeline into Argo CD/Flux," or "go from an empty repo to a Kubernetes service deplo...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Complete Cicd Pipeline Deployment For Kubernetes From Scratch είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/cicd-tooling/skills/complete-cicd-pipeline-deployment-for-kubernetes-from-scratch. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Complete Cicd Pipeline Deployment For Kubernetes From Scratch με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Complete Cicd Pipeline Deployment For Kubernetes From Scratch;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό selvarajmurugesan90 με την άδεια χρήσης Apache-2.0. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇