Reddit DevOps
272 subscribers
64 photos
32K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Fortify FOD

So we are trying to pack our code as zip which lies in our git repo at location (parrot/deploy/java/app).

My question is, does fortify FOD expect the code to be present at a particular directory within the zip for eg. (fortify upload.zip/src/app)?

Or do I package the parrot/deploy/java/app folder directly.

https://redd.it/12zdh1h
@r_devops
Keep telling PM theories something doesn’t work

So we program email templates. Client refuses to test in anything other than the janky version of Outlook for emails that go to their clients as they don’t understand each email system has its own quarks.

Anyways full QA and UAT on this product.

Client submits a bug ticket that image reported as missing in Gmail.

Between me (programmer who didn’t even program this new product), PM and QA team we spent nearly all day trying to figure this out. I kept saying it had to be a filename issue. We can only test for this issue in the production environment because of how the stage environments are set to convert all recipient emails to out test inbox in Outlook… After about 3/4 of the day completed it is determined the filenames the client used when they uploaded had spaces and it is a known bug since 2014 that Gmail can’t render the images that have a space in the name.

https://redd.it/131myxn
@r_devops
Intelligent next-gen editor for infra-as-code

Hi everyone, we’ve been working on an adaptive architecture engine as part of the open-source Klotho (github), and are now adding an intelligence layer on top of it we call InfraCopilot that features:

- High level editor - Start with a high level design and let InfraCopilot fill in the details
- Rearchitecting with confidence - Change architecture components and designs while InfraCopilot adjusts the rest to work with your changes
- Text + Visual editing - Use the UI or text based commands for maximum productivity
- Exporting Infrastructure-as-Code - Generate a deployable version of any of your architectures.
- Syncing with Github - Save and resume your work using your GitHub repo

We’re sharing the early access with the community - What are the last 2 Infra-as-Code tasks you had to do that took you more time than you were hoping?

https://redd.it/131psex
@r_devops
Beware of pricing tricks from Kodekloud

Their annual subscription was 135USD.......but recently after a "discount", the cost went up to 180USD.

https://redd.it/131r8q8
@r_devops
How do I restrict access to a Vercel app to traffic from my companys VPN?

I have this complex form I have deployed on Vercel and I only want people to be able to view it from the company VPN. How do I go about this? Do I dockerize the app with nginx and set up some rules, or do I use some Vercel plugin?

P.S: Can you pause or shelve a deployment? I can only see an option to delete but not to pause or take something offline.

https://redd.it/131ylq0
@r_devops
Octopus Deploy with TFS

Hi, We are considering Octopus but we still use TFS not GIT.

How's their support for TFS?

https://redd.it/131tmpm
@r_devops
Best AI course for a senior DevOps engineer?

I am a senior DevOps engineer with some backend knowledge.
I have recently worked on several projects, and I am now interested in learning how to use AI and integrate it into my daily work and projects.

Can anyone recommend an AI course that covers the basics of AI and its implementation in projects using Python?

https://redd.it/1324o7i
@r_devops
Best way to control Code PR Merge/Approval at Github/Gitlab level or at Argo/Jenkins Level?

I might be wording it wrong here, but basically I want to hear out opinions on best way to handle the code deployments onto EKS Setups.

Do we put a guardrails and validate that we are merging the right code at Gitlab/Github and then let the Dummy CD tools (Like Argo or Jenkins) pull and push the code or do you think the best way is to let users provide an option at Argo (or Jenkins) to approve the code coming to their end and let the deployment goes through??

​

Any thoughts on this silly topic??

https://redd.it/131sba9
@r_devops
Dev podcast listeners - what do dev podcasts never talk about?

Basically the title. If you listen to dev podcasts, what topics do you feel are not getting enough attention? What should be talked about more? What would you like to hear?
I'm an editor at a new dev podcast, I feel like "Top 10 AI dev tool" listicles created with ChatGPT are getting kind of boring. Would love to hear your thoughts.

https://redd.it/131swu7
@r_devops
Is there any good Open Source Alternative to Ploi, RunCloud, ServerPilot...

Like the title said, is there any open-source alternative to those services that is equal in features?

I want an open source alternative that I can install on one server and have the ability to connect an manage many other servers.

https://redd.it/1329kd7
@r_devops
Issue with ingress-nginx on Windows

https://github.com/kubernetes/ingress-nginx

​

Read the docs, but this command doesn't work:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/cloud/deploy.yaml

​

I get:

Resource: "batch/v1, Resource=jobs", GroupVersionKind: "batch/v1, Kind=Job"

Name: "ingress-nginx-admission-patch", Namespace: "ingress-nginx"

for: "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/cloud/deploy.yaml": Job.batch "ingress-nginx-admission-patch" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:"ingress-nginx-admission-patch", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string\]string{"app.kubernetes.io/component":"admission-webhook", "app.kubernetes.io/instance":"ingress-nginx", "app.kubernetes.io/name":"ingress-nginx", "app.kubernetes.io/part-of":"ingress-nginx", "app.kubernetes.io/version":"1.7.0", "controller-uid":"8326bc68-6f8c-426f-91d5-72d58694b3e7", "job-name":"ingress-nginx-admission-patch"}, Annotations:map[string\]string(nil), OwnerReferences:[\]v1.OwnerReference(nil), Finalizers:[\]string(nil), ManagedFields:[\]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[\]core.Volume(nil), InitContainers:[\]core.Container(nil), Containers:[\]core.Container{core.Container{Name:"patch", Image:"registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20230312-helm-chart-4.5.2-28-g66a760794@sha256:01d181618f270f2a96c04006f33b2699ad3ccb02da48d0f89b22abce084b292f", Command:[\]string(nil), Args:[\]string{"patch", "--webhook-name=ingress-nginx-admission", "--namespace=$(POD_NAMESPACE)", "--patch-mutating=false", "--secret-name=ingress-nginx-admission", "--patch-failure-policy=Fail"}, WorkingDir:"", Ports:[\]core.ContainerPort(nil), EnvFrom:[\]core.EnvFromSource(nil), Env:[\]core.EnvVar{core.EnvVar{Name:"POD_NAMESPACE", Value:"", ValueFrom:(*core.EnvVarSource)(0xc00a791ac0)}}, Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil), Claims:[\]core.ResourceClaim(nil)}, VolumeMounts:[\]core.VolumeMount(nil), VolumeDevices:[\]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:"/dev/termination-log", TerminationMessagePolicy:"File", ImagePullPolicy:"IfNotPresent", SecurityContext:(*core.SecurityContext)(0xc00a0ea5a0), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[\]core.EphemeralContainer(nil), RestartPolicy:"OnFailure", TerminationGracePeriodSeconds:(*int64)(0xc0104743c8), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:"ClusterFirst", NodeSelector:map[string\]string{"kubernetes.io/os":"linux"}, ServiceAccountName:"ingress-nginx-admission", AutomountServiceAccountToken:(*bool)(nil), NodeName:"", SecurityContext:(*core.PodSecurityContext)(0xc00a6ed4d0), ImagePullSecrets:[\]core.LocalObjectReference(nil), Hostname:"", Subdomain:"", SetHostnameAsFQDN:(*bool)(nil),
Affinity:(*core.Affinity)(nil), SchedulerName:"default-scheduler", Tolerations:[\]core.Toleration(nil), HostAliases:[\]core.HostAlias(nil), PriorityClassName:"", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[\]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[\]core.TopologySpreadConstraint(nil), OS:(*core.PodOS)(nil), SchedulingGates:[\]core.PodSchedulingGate(nil), ResourceClaims:[\]core.PodResourceClaim(nil)}}: field is immutable

https://redd.it/132buze
@r_devops
Localstack on Docker

Hi all, I have a school project that requires me to use LocalStack for AWS services on docker. My task is to write AWS Lambda scripts, some linkage to S3 as well as to the web API on LocalStack in a docker container. Can anyone share with me some good resources I can refer to?

&#x200B;

Many thanks!

https://redd.it/131q9vj
@r_devops
A question about how pods creation with requests

Hi guys,
I am new to kubernetes I need some direction to what ways can I create a pod with each request, for example 2 request hit and then 2 pods will create and then when the request is finished then 2 pods should kill with autoscale . I have been explored custom metrics but I don't know how to write conditions. If someone already worked can you please send some references links or somebody give any ideas to create pods based on the requests . I have been using load balancer as metal LB cluster for LB.


Thanks in advance

https://redd.it/131tjls
@r_devops
liberal arts major switching to a career in DevOps.

I did my undergrad in a liberal arts degree and I'm looking forward to switching my career into tech.

I'm not very proficient but I have tried my hands at Django, React and Postresql, tried MERN stack too ( I didn't really stick with it but if you asked me to build a simple demo app using one of the stacks I will know how to go about it)

I graduated with a BA last year and I've applied for MS in Computer science at a few unis in the UK ( since the UK has a lot of masters programs in CS for non-cs undergrads like me )


now I heard from a few of my friends from the UK that they hire only people who have experience, especially in DevOps and how finding internships in the UK is harder since there are a lot of international students applying for the same job posts.

so my question is :

Let's say I managed to grind through and get certs in Azure Fundamentals, or any one of the associates certification. Would the fact that I had no previous industry experience affect my job prospects? Can I apply for entry level jobs?

https://redd.it/132f8yg
@r_devops
cannot set up ingress

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-service
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- path: /service
pathType: Prefix
backend:
service:
name: myservice
port:
number: 8080

[192.168.49.2:8080/service](https://192.168.49.2:8080/service) doesn't respond, is there any error I did. I tried using the old configs, but it didn't work.

I also tried this:

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-service
annotations:
kubernetes.io/ingress.class: 'nginx'
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.ingress.kubernetes.io/rewrite-target: /$1
# UPDATE THIS LINE ABOVE
spec:
rules:
- http:
paths:
- path: /api/?(.*)
# UPDATE THIS LINE ABOVE
backend:
serviceName: myservice
servicePort: 8080

All my ports are mapped to 8080, so I am wondering why I get a timed out error.



&#x200B;

I am just trying to map the load balancer to the ip-cluster (myservice) and everything maps to 8080 and all instances are just different instances of the same backend api,

https://redd.it/132fh8k
@r_devops
People who went back for a degree, what degree did you get

What degree did you get? Did your work pay for it? How did you manage your time? Did your degree advance your career.

https://redd.it/132js8u
@r_devops
setting up ingress easily on your local machine


Metadata

Name
ingress-serviceNamespace
defaultCreated
Apr 28, 2023 Age
2 hours ago UID
28d85070-b377-40f3-be2b-268b8c46f69eAnnotations

kubectl.kubernetes.io/last-applied-configuration
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/use-regex: true
Resource information
Endpoints
192.168.49.2
Rules
Host Path Path Type Service Name Service Port TLS Secret - /?(.*) Prefix ip-service 3000-
Events
NameReason



MessageSourceSub-objectCountFirst Seen



Last Seen



ingress-service.175a4928eb9af7d0SyncScheduled for sync nginx-ingress-controller -3 an hour ago 20 minutes ago

I was able to set up ingress, and I was using "Docker and Kubernetes The Complete Guide" configs for the ingress, but it seems it doesn't work at all and I can't connect to [192.168.49.2](https://192.168.49.2), because it's still scheduled for sync. Is the config 100% deprecated? Because in the tutorial it works locally with minikube, but I can't access it on my local machine after fixing the deprecated configs that no longer works.

&#x200B;

Is there a really easy way to set it up now, because everything seems to be deprecated. He's also not using the official ingress library.

https://redd.it/132jvv2
@r_devops
Help with upcoming devops interview

Hi guys, I am a recent software engineering bootcamp grad and I have a devops engineer interview in a few days. It’s for a apprenticeship - so very junior. Although I don’t know much about devops I would love to get this job. I have to give a presentation on devops, the future of the devops etc. does anyone have any tips on what I might what to research or include in the presentation that would be great!

Thanks

https://redd.it/132nkar
@r_devops