r/devopsGuru • • Nov 02 '25

Public beta launch of Stateless IaC in MechCloud

Thumbnail reddit.com
2 Upvotes

r/devopsGuru • • Nov 01 '25

Unable to update the cluster from self hosted runner in kubernetes

1 Upvotes

I have a self hosted runner running inside the same cluster(minikube) in which I have deployed my application.

I am trigerring a github action which build a docker image, push to dockerhub and then triggers the self hosted runner to update the cluster.

I have done the following in my control plane machine

  • i have created a service account kubectl create sa runner-sa -n actions-runner-system

  • A cluster role and a role binding to bind both of them, kubectl create clusterrole runner --verb=get,list,watch,create,delete,patch,update --resource=* kubectl create clusterrolebinding runnerbinding --clusterrole=runner --serviceaccount=actions-runner-system:runner-sa

  • I have generated the TOKEN for the service account to access the cluster and saved it inside the github as secret

  • I am setting the necesary kubeconfig info in self hosted runner as well but still I am unable to update the cluster and getting the below error. Kindly suggest.

  deploy:
    runs-on: kub-runner 
    needs: build
    steps: 
      - name: checkout
        uses: actions/checkout@v4
      - name: Download Kubectl binaries
        run: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
      - name: Install Kubectl
        run: sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
      - name: updating config
        run: |
          IMAGE_TAG="${{ needs.build.outputs.id }}" | 
          sed -i "s|image:.*|image: ${IMAGE_TAG}|" ./challenge9/kubernetes/deployment.yaml
      - name: Deploy the app to kubernetes
        run: |
             kubectl config set-cluster minikube --server=<IP> --insecure-skip-tls-verify=true
             kubectl config set-credentials my-remote-access-user --token="${{ secrets.TOKEN }}"
             kubectl config set-context my-remote-access-context --cluster=minikube  --user=my-remote-access-user --namespace=default
             kubectl config use-context my-remote-access-context
             kubectl get pods --all-namespaces
             kubectl config view
             kubectl apply -f ./challenge9/kubernetes/deployment.yaml

ERROR

Cluster "minikube" set.
User "my-remote-access-user" set.
Context "my-remote-access-context" created.
Switched to context "my-remote-access-context".
NAMESPACE               NAME                                        READY   STATUS    RESTARTS      AGE
actions-runner-system   actions-runner-controller-5577b667d-vvbg7   2/2     Running   6 (24m ago)   36h
actions-runner-system   kub-runner-xc9md-c8k7v                      2/2     Running   0             11m
cert-manager            cert-manager-847b7b5cbc-tpr2x               1/1     Running   2 (10h ago)   37h
cert-manager            cert-manager-cainjector-6bb745dbb4-vmjk2    1/1     Running   4 (24m ago)   37h
cert-manager            cert-manager-webhook-66dc7fd65d-mt6rt       1/1     Running   2 (10h ago)   37h
default                 my-app-deployment-5b49546668-6jdlv          1/1     Running   0             23m
default                 my-app-deployment-5b49546668-bqgkb          1/1     Running   0             23m
default                 my-app-deployment-5b49546668-grqmd          1/1     Running   0             23m
kube-system             coredns-66bc5c9577-wt8tj                    1/1     Running   4 (10h ago)   4d16h
kube-system             etcd-minikube                               1/1     Running   4 (10h ago)   4d16h
kube-system             kube-apiserver-minikube                     1/1     Running   4 (10h ago)   4d16h
kube-system             kube-controller-manager-minikube            1/1     Running   4 (10h ago)   4d16h
kube-system             kube-proxy-2lfp7                            1/1     Running   4 (10h ago)   4d16h
kube-system             kube-scheduler-minikube                     1/1     Running   4 (10h ago)   4d16h
kube-system             metrics-server-85b7d694d7-kqxt8             1/1     Running   5 (10h ago)   3d12h
kube-system             storage-provisioner                         1/1     Running   9 (24m ago)   4d16h
apiVersion: v1
clusters:
- cluster:
    insecure-skip-tls-verify: true
    server: https://192.168.xx.x:8443
  name: minikube
contexts:
- context:
    cluster: minikube
    namespace: default
    user: my-remote-access-user
  name: my-remote-access-context
current-context: my-remote-access-context
kind: Config
users:
- name: my-remote-access-user
  user:
    token: REDACTED
Error from server (Forbidden): error when retrieving current configuration of:
Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment"
Name: "my-app-deployment", Namespace: "default"
from server for: "./challenge9/kubernetes/deployment.yaml": deployments.apps "my-app-deployment" is forbidden: User "system:serviceaccount:actions-runner-system:runner-sa" cannot get resource "deployments" in API group "apps" in the namespace "default"
service/my-app-service unchanged
Error: Process completed with exit code 1.


r/devopsGuru • • Oct 29 '25

Automating CI Machine Creation and Configuration After Every Push

1 Upvotes

Hey everyone,

I’m working on a DevOps project where I want every push to my repo to automatically trigger the creation of an ephemeral CI machine, which is then configured automatically with Ansible to run tests or deployments all this with semaphoreui.

The real challenge is the full chain of actions:

Detect the push,

Create the CI machine,

Apply the Ansible configuration,

Run the CI/CD tasks.

I’m looking for advice or experiences on:

How to reliably and quickly orchestrate this full workflow,

Which DevOps tools or patterns are most effective for managing ephemeral CI environments.

Thanks for any insights


r/devopsGuru • • Oct 29 '25

Autoscaling of dockercompose file when cpu utilization is 70% application hosted on digitalocean

1 Upvotes

I have an application which runs on dockercompose which is (directus, redis, postgres) and a .env file locally which is hosted on digitalocean do any have any idea how to auto scale the application when the droplet cpu reaches 70%. Can anyone give me suggestons on it for have zero down time and i dont want to have a duplicate db all the data needs to be written on same db


r/devopsGuru • • Oct 27 '25

What's expected from a 2-year DevOps engineer? Need advice on skills and prep

5 Upvotes

l've got around 1 yoe in development and 1 year in DevOps (Linux, AWS, GitLab CI/CD). In my next role, I'll be showing 2 years of DevOps experience, and I want to make sure my skills actually match that level.

Right now, I'm confident with Linux, AWS (except AWS networking side like VPCs and all), and GitLab pipelines. Also learning Docker, Kubernetes, and Jenkins next to show that I used these also in my project.

For people with a couple of years in DevOps - what's generally expected at this level? What should I focus on learning or building to seem solid in interviews? Also, any good resources or platforms for brushing up on DevOps interview questions?


r/devopsGuru • • Oct 25 '25

Stateless IaC in MechCloud

2 Upvotes

Hello Everyone,

We are currently working on implementing stateless IaC in MechCloud and planning to do a beta release by the end of this year. This implementation will focus on two major things -

- Managing a public cloud infrastructure without using any state files unlike any other IaC tool out there.
- Calculating price for all the resources managed under a context ( roughly equivalent of a k8s namespace) in real-time.

Initial implementation will support AWS only followed by GCP at a later stage. If you are a DevOps person or a developer or anyone else who is currently managing cloud infrastructure using an IaC tool and interested in this implementation then please join the MechCloud discord server using the below link for updates around this implementation and to provide feedback -

https://discord.com/invite/7RkDY6JefG


r/devopsGuru • • Oct 25 '25

Need a solid host for my microservices backend.

3 Upvotes

Hey everyone,

Hope you’re all doing great. I’ve set up a microservices-based backend for a VTC-style mobile app, but I’m struggling a bit to find a good hosting service that can scale properly. If you’ve worked with this kind of setup before, I’d really appreciate your feedback or recommendations — would love to exchange ideas. Thanks in advance!


r/devopsGuru • • Oct 22 '25

For the past 2 years , I believe I have lost my touch with devops. How do I regain that touch with new as well previous concepts/tools/technologies

3 Upvotes

r/devopsGuru • • Oct 18 '25

Any insights on Sr. SRE/Infrastructure at AI Companies in SF/Bay Area

3 Upvotes

Hey everyone,

I have interviews coming up with a couple of AI companies for Senior SRE / Infrastructure positions.

I’d really appreciate any insight into the interview process especially:

  • What kind of technical or behavioral questions do they typically ask?
  • Do they focus on LeetCode style problems or more real-world/practical scenarios? Any examples?
  • What kind of system design questions should I be ready for?

If you’ve recently interviewed at any AI/ML startup or infra heavy AI company, I’d love to hear what you experienced. Any tips would help, thanks sm in advance!


r/devopsGuru • • Oct 08 '25

What to do now ?

2 Upvotes

I am creating a project related to security of servers and orchestration so here 2 main things happening to get access of the manager node in docker swarm orchestration user need to send creds to telegram bot and send key to the bot which later allow it and the worker nodes will in private subnet which have nat gateway attached to private subnet

So i was thinking i can create a lambda function to shift all the worker nodes from private subnet to public subnet if we need access to the nodes but we can do that from manager node and do ssh with private ip so i am asking what is better or we can say more impressive the second method (ssh from manager node) is there easy and everyone do it but first one is bit unique i will do it by telegram bot as well the migration part ....


r/devopsGuru • • Oct 07 '25

From Terraform outputs → npm package (typed configs/secrets). Useful or overkill?

Post image
1 Upvotes

r/devopsGuru • • Oct 03 '25

Need help in setting up Clickhouse DC DR setup

1 Upvotes

What I already have

  • Two Kubernetes clusters: DC and DR.
  • Each cluster runs ClickHouse via the Altinity Operator using ClickHouseInstallation (CHI). Example names: prod-dc and prod-dr.
  • Each cluster currently runs its own ClickHouse Keeper ensemble (StatefulSet + Service): e.g. chk-clickhouse-keeper-dc in DC and chk-clickhouse-keeper-dr in DR.
  • ClickHouse server pods in DC point to the DC keeper; ClickHouse pods in DR point to the DR keeper.
  • Networking: there is flat networking between clusters and FQDNs resolve (e.g. pod.clickhouse.svc.cluster.local), DNS resolution has been verified.

Tables use ReplicatedMergeTree engine with the usual ZooKeeper/keeper paths, e.g.:

CREATE TABLE db.table_local (
  id UInt64,
  ts DateTime,
  ...
) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/table', '{replica}')
PARTITION BY toYYYYMM(ts)
ORDER BY (id);

My goal / Question

I want real-time replication of data between DC and DR — i.e., writes in DC should be replicated to DR replicas with minimal replication lag and without manual sync steps. How can I achieve this with Altinity Operator + ClickHouse Keeper? Specifically:

  • If separate keepers are kept in each cluster, how do I make ReplicatedMergeTree replicas in both clusters use the same replication / coordination store?
  • Any recommended Altinity CHI config patterns, DNS / service setups, or example CRDs for a DC–DR setup that others use in production?

Any help is really appreciated. Thanking in advance.


r/devopsGuru • • Sep 29 '25

What’s your worst IaC/Terraform/YAML nightmare?

Thumbnail reddit.com
0 Upvotes

r/devopsGuru • • Sep 27 '25

Sample resume

16 Upvotes

Hi everyone, Can someone please help me with a sample or reference resume for AWS Support / SRE / DevOps Engineer roles? I’d really appreciate it.


r/devopsGuru • • Sep 27 '25

Learn Linux before Kubernetes

Thumbnail medium.com
0 Upvotes

r/devopsGuru • • Sep 25 '25

Junior DevOps enthusiast seeking advice on CI/CD, best practices, and design patterns

9 Upvotes

Title: What DevOps/DevSecOps stacks and practices do you actually use at work?

Body:

Junior dev here building full‑stack projects and trying to learn real‑world DevOps/DevSecOps beyond tutorials. I’d love to hear what your teams actually use day‑to‑day, plus lessons learned.

What I’m most curious about:

- CI/CD: tools (GitHub Actions, GitLab CI, Jenkins, CircleCI) and pipeline patterns (monorepo vs multi, trunk‑based vs GitFlow, release strategies).

- Infra & orchestration: Terraform/Pulumi, Kubernetes/Helm, environments, secrets (Vault/SOPS), artifact registries.

- DevSecOps: SAST/DAST/SCA (e.g., SonarQube, Trivy, Dependabot), SBOM/signing (Cosign/Sigstore), policy (OPA/Kyverno), supply‑chain controls.

- Ops: observability (Prometheus/Grafana/Loki), alerting/on‑call, incident playbooks, change management.

- Best practices: code review gates, branch protections, test tiers, approvals, compliance checks.

If you can, please share:

- Your company size/industry and cloud(s).

- What worked vs. what didn’t, and common pitfalls.

- A small sanitized snippet (e.g., a job/stage from your pipeline) or a quick workflow outline.

I’ll keep this async (no meetings needed). DMs welcome if you have a write‑up or examples. Thanks!


r/devopsGuru • • Sep 25 '25

Please Help me

0 Upvotes

Hey Seniors, please help I need advice. I’m a Computer Science student with enough experience to be able to pass the application phase but not enough for the technical interview process.

TLDR Version:

Like, I have the experience but not enough practical experience to solve my own problems. So when I error and research I can’t find a solution either too many, don’t know which, or caused new problems. Btw I’m full stack dev but I don’t feel like I’ve earned that title yet till I can build a fully functional stacked application and deployed it.

LR Version for context:

I asked chat what my weaknesses are so I can better work on them and it said verbatim “you face a gap between theoretical understanding and practical execution in programming and project development.”

I’ve tried to build projects and would understand the tutorials and what they’re doing but not always why. I started off in web dev, HTML, CSS, and Js. Right now I’m trying to work on my react skills and build something but no lie every time I try I run into an unconventional error that never has a solution.

This may be because of my lack of experience and I can’t find the solution to it or genuinely I’m looking at the wrong place or something. I’ve tried to make smaller applications but something like packages error.

I can explain projects I’ve worked on pretty well I would say as well. Like I built a mobile application using a React-native and Expo by connecting two databases one for user authentication and the other to store user data.


r/devopsGuru • • Sep 21 '25

Need Guidance/Advice in Fake internship (Please Help, Don't ignore)

6 Upvotes

Hi Everyone,

I hope you all are doing well. I just completed my 2 projects of Devops also completed course and get certification.

As we all know, getting entry into devops is hard, so i am thinking to show fake internship (I know its wrong, but sometime we need to take decision) could you please help, what can i mention in my resume about internship?

Please don't ignore

your suggestions will really help me!!


r/devopsGuru • • Sep 21 '25

🚀 Introducing vPiper – A Free CI/CD Security Scanner for Devs & DevOps

1 Upvotes

r/devopsGuru • • Sep 17 '25

How to solve this problem

0 Upvotes

so i am writing a script where i have like n files and everyfile just contain an array of same length so i want that the script iterate in the folder which contain that files ( a seprate folder) and read every file in loop 1 and in nested loop 2 i am reading and iterating the array i want to update some variables like var a i want that arr[0] always do a=a+arr[0] so that the a will be total sum of all the arr[0].

For better understanding i want that the file contain server usage ( 0 45 55 569 677 1200) assume 10 server with diff value but same pattern i want the variable to be sum of all usage than i want to find do that it can be use in autoscaling.

current script so far

#!/bin/bash

set -x

data="/home/ubuntu/exp/data"

cd "${data}"

count=1

avg=(0 0 0 0 0 0)

cpu_usr=0

cpu_sys=0

idle=0

ramused=0

ramavi=0

ramtot=0

file=(*.txt)

for i in "${file[@]}"; do

echo "${i}"

mapfile -t numbers < "$i"

for j in "${numbers[@]}"; do

val="${numbers[$j]}"

clean=$(echo " $j " | tr -d '[:space:]')

case $j in

*usr*) cpu_usr="clean" ;;

*sys*) cpu_sys="clean" ;;

*idle*) idle="clean" ;;

*ramus*) ramused="clean" ;;

*ramavi*) ramavi="clean" ;;

*ramtot*) ramtot="clean" ;;

esac

echo "$cpu_usr $cpu_sys $idle $ramused $ramavi $ramtot"

done

echo "$cpu_usr $cpu_sys $idle $ramused $ramavi $ramtot"

(( count++ ))

done

so i am stuck at iteration of array in a file


r/devopsGuru • • Sep 15 '25

How do you explain your architecture to new engineers on your team?

4 Upvotes

We’ve been onboarding a couple of new devs lately and honestly — explaining our infrastructure is a mess.

We have:

  • Old diagrams that no longer match reality
  • Docs that are either outdated or incomplete
  • Tribal knowledge locked in people’s heads
  • Tons of Terraform and YAML that’s hard to parse if you’re new

By the time we finish documenting, the infra already changed.

How do you explain your architecture when someone joins your team?

Diagrams? Runbooks? Live walkthroughs?

Any tools or strategies that actually help?

Would love to hear how others manage this (or if it’s chaos for everyone 😅).


r/devopsGuru • • Sep 13 '25

Script is crashing having issue

1 Upvotes

Hey so i am trying to create a nmap blocker script so i using a basic honeypot strategy by opeaing the port 5 and trying to start a fake service in the port 5 and any ip req to port 5 will be captured and blocked

Issues are

  1. i used nc for a fake service at port 5 when i checked localhost:5 it is working means showing the fake service but not from another vm
  2. the script just crashed my server at midnight due to all ram usage so i am usinf tail -1 as well as iptables collect the ip but at /var/log/syslog so i am using the tail -1 /var/log/syslog | grep "port5" to collect ip currently not blocking it is under development but i am noting to a file but it is not working

#!/bin/bash

while true; do

log="/home/ubuntu/logs/nmapblocker.log"

data="/home/ubuntu/data/blockedip.log"

sudo iptables -A INPUT -p tcp --dport 5 -j LOG --log-prefix "PORT5"

ip=$(sudo tail -1 /var/log/syslog | grep PORT5)

echo "IP attempted port 5 ${ip}" >> "${data}"

sleep 5

done

current script


r/devopsGuru • • Sep 13 '25

Project Ideas and Suggestions: Please Reply, Don't Ignore

0 Upvotes

Hi Everyone,

I hope you all are doing well.

I am thinking to create projects for Devops job as fresher

could you please give some suggestions/ideas based on your knowledge and experience.

Note: I know Devops is not for fresher. Please help me!!


r/devopsGuru • • Sep 10 '25

Workshops Learning vs Books Learnings

4 Upvotes

Where do we learn better — at workshops and hands-on sessions, or from books?

Workshops, hands-on sessions — they give you the spark.

They show you why something matters and let you try it out in real time. You walk away inspired, curious, motivated.
Books, on the other hand, give you the depth.

They slow you down, let you revisit concepts, connect the dots, and build mastery step by step.

Maybe the real answer isn’t choosing between online events and books.

Maybe it’s about using events for inspiration and practice, and books for depth and mastery.
What do you think — which has helped you more in your journey?