Gitlab vs many integrated tools?
I'm new to DevOps and am currently training. Is there any benefit to choosing Jenkins plus other tools over a complete offering like Gitlab? My understanding may be a bit off so bare with me haha. But gitlab seems like a nobrainer to my untrained self.
https://redd.it/ezrjy5
@r_devops
I'm new to DevOps and am currently training. Is there any benefit to choosing Jenkins plus other tools over a complete offering like Gitlab? My understanding may be a bit off so bare with me haha. But gitlab seems like a nobrainer to my untrained self.
https://redd.it/ezrjy5
@r_devops
reddit
Gitlab vs many integrated tools?
I'm new to DevOps and am currently training. Is there any benefit to choosing Jenkins plus other tools over a complete offering like Gitlab? My...
PHP not Dynamical rendering Select List
Hi,
I am trying to get this PHP Page working, I am trying to populate a Drop Down list based on the Selection of the First List, The First List is population, but unable to get the Second list populated:
I have one Table called Test with four Columns:
`<?php`
`function load_datacenter()`
`{`
`$servername = "localhost";`
`$username = "dev";`
`$password = "/";`
`$dbname="vsphere";`
`$connect = new mysqli($servername, $username, $password, $dbname);`
`$sql = "Select DISTINCT Datacenter from vsphere.test";`
`$result = mysqli_query($connect, $sql);`
`while($datacenter = mysqli_fetch_array($result))`
`{`
`echo "<option value= $datacenter[Datacenter]>$datacenter[Datacenter]</option>";`
`}`
`}`
`?>`
`<html>`
`<head>`
`<title>`
`</title>`
`</head>`
`<body>`
`<p>Select DataCenter`
`<select name="datacenter" id="datacenter">`
`<option value=" ">Select Data Center</option>`
`<?php echo load_datacenter(); ?>`
`</select></p>`
`<p>Select vCenter`
`<select name="vcenter" id="vcenter">`
`<option value="">Select vCenter</option>`
`</select></p>`
`</body>`
`</html>`
`<script>`
`$(document).ready(function(){`
`$('#datacenter').change(function(){`
`var datacenter = $("#datacenter").val();`
`$.ajax({`
`url:"fetch_vcenter.php",`
`type:"post",`
`data:"datacenter="+datacenter,`
`success:function(data){`
`$('#vcenter').html(data);`
`}`
`})`
`});`
`});`
`</script>`
​
The Fetch\_vCenter.php
`<?php`
`$servername = "localhost";`
`$username = "dev";`
`$password = "";`
`$dbname="vsphere";`
`$connect = new mysqli($servername, $username, $password, $dbname);`
`$Datacenter=$_POST["Datacenter"];`
`$sql = "select DISTINCT Vcenter FROM vsphere.test WHERE Datacenter='$Datacenter'";`
`$result = mysqli_query($connect, $sql);`
`while($row = mysqli_fetch_array($result))`
`{`
`echo"<option value=$row[Vcenter]> $row[Vcenter]</option>";`
`}`
`?>`
https://redd.it/ezz80k
@r_devops
Hi,
I am trying to get this PHP Page working, I am trying to populate a Drop Down list based on the Selection of the First List, The First List is population, but unable to get the Second list populated:
I have one Table called Test with four Columns:
`<?php`
`function load_datacenter()`
`{`
`$servername = "localhost";`
`$username = "dev";`
`$password = "/";`
`$dbname="vsphere";`
`$connect = new mysqli($servername, $username, $password, $dbname);`
`$sql = "Select DISTINCT Datacenter from vsphere.test";`
`$result = mysqli_query($connect, $sql);`
`while($datacenter = mysqli_fetch_array($result))`
`{`
`echo "<option value= $datacenter[Datacenter]>$datacenter[Datacenter]</option>";`
`}`
`}`
`?>`
`<html>`
`<head>`
`<title>`
`</title>`
`</head>`
`<body>`
`<p>Select DataCenter`
`<select name="datacenter" id="datacenter">`
`<option value=" ">Select Data Center</option>`
`<?php echo load_datacenter(); ?>`
`</select></p>`
`<p>Select vCenter`
`<select name="vcenter" id="vcenter">`
`<option value="">Select vCenter</option>`
`</select></p>`
`</body>`
`</html>`
`<script>`
`$(document).ready(function(){`
`$('#datacenter').change(function(){`
`var datacenter = $("#datacenter").val();`
`$.ajax({`
`url:"fetch_vcenter.php",`
`type:"post",`
`data:"datacenter="+datacenter,`
`success:function(data){`
`$('#vcenter').html(data);`
`}`
`})`
`});`
`});`
`</script>`
​
The Fetch\_vCenter.php
`<?php`
`$servername = "localhost";`
`$username = "dev";`
`$password = "";`
`$dbname="vsphere";`
`$connect = new mysqli($servername, $username, $password, $dbname);`
`$Datacenter=$_POST["Datacenter"];`
`$sql = "select DISTINCT Vcenter FROM vsphere.test WHERE Datacenter='$Datacenter'";`
`$result = mysqli_query($connect, $sql);`
`while($row = mysqli_fetch_array($result))`
`{`
`echo"<option value=$row[Vcenter]> $row[Vcenter]</option>";`
`}`
`?>`
https://redd.it/ezz80k
@r_devops
reddit
PHP not Dynamical rendering Select List
Hi, I am trying to get this PHP Page working, I am trying to populate a Drop Down list based on the Selection of the First List, The First List...
Q about Google Cloud Billing Accounts
Using 2 GCP accounts. 1 - org account that has some credit. 2 - a regular. account with a project. Need to modify account(project) 2 so that it uses the billing account of account 1. Cant find anything in the console. Want to keep the ability to have different credentials to login to console.
https://redd.it/ezzfbd
@r_devops
Using 2 GCP accounts. 1 - org account that has some credit. 2 - a regular. account with a project. Need to modify account(project) 2 so that it uses the billing account of account 1. Cant find anything in the console. Want to keep the ability to have different credentials to login to console.
https://redd.it/ezzfbd
@r_devops
reddit
Q about Google Cloud Billing Accounts
Using 2 GCP accounts. 1 - org account that has some credit. 2 - a regular. account with a project. Need to modify account(project) 2 so that it...
Downsides Of Linting Tools
Good read on why they may not be the best long term choice for software development [https://blog.codacy.com/7-drawbacks-linters/](https://blog.codacy.com/7-drawbacks-linters/)
https://redd.it/ezxilz
@r_devops
Good read on why they may not be the best long term choice for software development [https://blog.codacy.com/7-drawbacks-linters/](https://blog.codacy.com/7-drawbacks-linters/)
https://redd.it/ezxilz
@r_devops
Codacy | Blog
Linters: Read 7 Drawbacks Of Using Linting Tools For Static Code Analysis
Linters (aka linting tools or static analyzers) may not be the best choice for automated code review & static analysis for software quality
What kind of python scripts used for devops role?
Most of the firm's were looking devops engineer with python scripting knowledge...I would like to know at what scenarios, devops engineer needs to write python scripting..
It would be great, can anyone guide me what are the test cases you were involved in writing python scripting..
Tell me some scenarios...if possible....,
https://redd.it/ezwvr6
@r_devops
Most of the firm's were looking devops engineer with python scripting knowledge...I would like to know at what scenarios, devops engineer needs to write python scripting..
It would be great, can anyone guide me what are the test cases you were involved in writing python scripting..
Tell me some scenarios...if possible....,
https://redd.it/ezwvr6
@r_devops
reddit
What kind of python scripts used for devops role?
Most of the firm's were looking devops engineer with python scripting knowledge...I would like to know at what scenarios, devops engineer needs to...
Minikube and Kubectl explained for Beginners
In the [1st video "Minikube and Kubectl"](https://youtu.be/E2pP1MOfo3g) I cover the **theory** from:
* What is Minikube?
* What is Kubectl?
To **practice**:
* Setup of a minikube cluster locally
The [2nd video "Basic commands of Kubectl"](https://youtu.be/azuwXALfyRg) is basically a demo, where I'll go through basic commands by showing how to:
* create, edit, delete a pod
* useful debugging commands - e.g. how to get interactive terminal of the container
* apply configuration file
Please check it out and I hope these videos are helpful for some of you. 🤓
https://redd.it/ezvvz9
@r_devops
In the [1st video "Minikube and Kubectl"](https://youtu.be/E2pP1MOfo3g) I cover the **theory** from:
* What is Minikube?
* What is Kubectl?
To **practice**:
* Setup of a minikube cluster locally
The [2nd video "Basic commands of Kubectl"](https://youtu.be/azuwXALfyRg) is basically a demo, where I'll go through basic commands by showing how to:
* create, edit, delete a pod
* useful debugging commands - e.g. how to get interactive terminal of the container
* apply configuration file
Please check it out and I hope these videos are helpful for some of you. 🤓
https://redd.it/ezvvz9
@r_devops
YouTube
Minikube and Kubectl explained | Setup for Beginners | Kubernetes Tutorial 17
What is Minikube? What is Kubectl? Minikube and Kubectl setup for beginners. Setup a minikube cluster locally.
► Subscribe To Me on Youtube: https://bit.ly/2z5rvTV
Usually in a production cluster setup you will have multiple master and worker nodes on…
► Subscribe To Me on Youtube: https://bit.ly/2z5rvTV
Usually in a production cluster setup you will have multiple master and worker nodes on…
Confused about a core concept - what am I missing?
Docker allows applications & their dependencies to be bundled up so that they run predictably and reliably in any environment. Sure.
What if the app is a web app? Since the app runs in the browser, the underlying OS/local env doesn't _really_ matter, thus what's the benefit of docker here? In this case, I feel like the browser is the environment, is that right?
Or is the server it's hosted on still the environment?
Clearly, I have no true understanding of docker and I'm clearly missing something, but really want to understand. My question probably makes no sense, but if anybody could help fill my knowledge gap I would be extremely grateful.
https://redd.it/f03h6w
@r_devops
Docker allows applications & their dependencies to be bundled up so that they run predictably and reliably in any environment. Sure.
What if the app is a web app? Since the app runs in the browser, the underlying OS/local env doesn't _really_ matter, thus what's the benefit of docker here? In this case, I feel like the browser is the environment, is that right?
Or is the server it's hosted on still the environment?
Clearly, I have no true understanding of docker and I'm clearly missing something, but really want to understand. My question probably makes no sense, but if anybody could help fill my knowledge gap I would be extremely grateful.
https://redd.it/f03h6w
@r_devops
reddit
Confused about a core concept - what am I missing?
Docker allows applications & their dependencies to be bundled up so that they run predictably and reliably in any environment. Sure. What if the...
Is testing part of a build process, or should they be seen as completely separate steps?
Disclaimer: All binaries should be fully tested before letting them touch production side. Period. This is something is fully believe in and won't deviate from.
There's basically 2 views on this:
1\. **Yes, the testing is part of the build.**
When you push something to your branch, this branch should be build and tested fully. This means the developer will have to wait for the entire process(includes unit testing and integration testing) to complete. The mindset here is that an untested binary is not a valid output and should not exist.
2\. **No, the testing is a separate**
Same thing as above, but if you push something to a branch ci/cd picks up your new changes and builds your code. This binary/output is then stored somewhere as an untested blob. *Then depending on your configuration*[1], you can run another job to test the output. This test job then does whatever the other method of working does and stores/deploys the tested output.
-----------------
My opinion:
Personally I'm in the mindset of the latter because it decouples the build from the testing, giving you the benefit of [1]. Not every branch needs to be tested on every push. I want to push and get results asap. I don't want to wait. The former mindset makes no sense to me since it just sounds like "tests are mandatory so every build should be tested", but that doesn't mean you should implement it on a technical level like that.
I'm curious about opinions from this sub.
https://redd.it/ezwztw
@r_devops
Disclaimer: All binaries should be fully tested before letting them touch production side. Period. This is something is fully believe in and won't deviate from.
There's basically 2 views on this:
1\. **Yes, the testing is part of the build.**
When you push something to your branch, this branch should be build and tested fully. This means the developer will have to wait for the entire process(includes unit testing and integration testing) to complete. The mindset here is that an untested binary is not a valid output and should not exist.
2\. **No, the testing is a separate**
Same thing as above, but if you push something to a branch ci/cd picks up your new changes and builds your code. This binary/output is then stored somewhere as an untested blob. *Then depending on your configuration*[1], you can run another job to test the output. This test job then does whatever the other method of working does and stores/deploys the tested output.
-----------------
My opinion:
Personally I'm in the mindset of the latter because it decouples the build from the testing, giving you the benefit of [1]. Not every branch needs to be tested on every push. I want to push and get results asap. I don't want to wait. The former mindset makes no sense to me since it just sounds like "tests are mandatory so every build should be tested", but that doesn't mean you should implement it on a technical level like that.
I'm curious about opinions from this sub.
https://redd.it/ezwztw
@r_devops
reddit
Is testing part of a build process, or should they be seen as...
Disclaimer: All binaries should be fully tested before letting them touch production side. Period. This is something is fully believe in and won't...
Is a devops job a good move for me?
I am looking for new jobs and I am currently fullstack developer (technically lead architect) for the startup I work at. I do a lot of devops in my current role and am about to sit the AWS CSAA exam and I do enjoy this aspect of my work. I am interviewing for a Head of Devops role at a challenger bank which I think I have a good shot at but this would likely not include any application development.
I would like my future roles to be things like Head/VP of Engineering do you think this is a good career move?
https://redd.it/eztr4s
@r_devops
I am looking for new jobs and I am currently fullstack developer (technically lead architect) for the startup I work at. I do a lot of devops in my current role and am about to sit the AWS CSAA exam and I do enjoy this aspect of my work. I am interviewing for a Head of Devops role at a challenger bank which I think I have a good shot at but this would likely not include any application development.
I would like my future roles to be things like Head/VP of Engineering do you think this is a good career move?
https://redd.it/eztr4s
@r_devops
reddit
Is a devops job a good move for me?
I am looking for new jobs and I am currently fullstack developer (technically lead architect) for the startup I work at. I do a lot of devops in...
Where to start ?
i'm pursuing my career towards cybersecurity and i don't know much about devops i thought it would helpful if i add devops to it but i don't know where to start so can you guys help me by giving good information
https://redd.it/ezswxz
@r_devops
i'm pursuing my career towards cybersecurity and i don't know much about devops i thought it would helpful if i add devops to it but i don't know where to start so can you guys help me by giving good information
https://redd.it/ezswxz
@r_devops
reddit
Where to start ?
i'm pursuing my career towards cybersecurity and i don't know much about devops i thought it would helpful if i add devops to it but i don't know...
Is there a way to hit a particular pod for a request.
So i have a kube cluster deployed for a service which runs around 50 pods. A few of them having been going out of memory and I am pretty sure there is memory leak in my application. I have written an endpoint in my application which takes the heap dump and then uploads it on s3. I want to take this heap dump on a long running pod so i can debug the mem leak. Is there way i can hit a particular pod using postman by passing in some selectors?
https://redd.it/ezsp4n
@r_devops
So i have a kube cluster deployed for a service which runs around 50 pods. A few of them having been going out of memory and I am pretty sure there is memory leak in my application. I have written an endpoint in my application which takes the heap dump and then uploads it on s3. I want to take this heap dump on a long running pod so i can debug the mem leak. Is there way i can hit a particular pod using postman by passing in some selectors?
https://redd.it/ezsp4n
@r_devops
reddit
Is there a way to hit a particular pod for a request.
So i have a kube cluster deployed for a service which runs around 50 pods. A few of them having been going out of memory and I am pretty sure...
Application monitoring tool
I am looking for an Application monitoring, health check, and service map dashboard tool for node js and java based applications. I host applications in AWS EC2 servers.
Could you please tell me which is the most popular tool for this purpose?
Which tool can help ?
https://redd.it/ezs73j
@r_devops
I am looking for an Application monitoring, health check, and service map dashboard tool for node js and java based applications. I host applications in AWS EC2 servers.
Could you please tell me which is the most popular tool for this purpose?
Which tool can help ?
https://redd.it/ezs73j
@r_devops
reddit
Application monitoring tool
I am looking for an Application monitoring, health check, and service map dashboard tool for node js and java based applications. I host...
[DevSecOps] Stick to CentOS 7.x for DevSec Linux Baseline or attempt to adapt it to CentOS 8.x?
I'm using https://github.com/dev-sec/linux-baseline to create hardened image basic templates. However, the repo hasn't been updated to support the newer distributions yet, and I need to stick to CentOS for a specific project.
In terms of best practices, should I stick to CentOS 7.x as a known safe default, or or try to lift up the DevSec Linux Baseline to support CentOS 8.x instead, without really knowing what I'm doing?
https://redd.it/ezq838
@r_devops
I'm using https://github.com/dev-sec/linux-baseline to create hardened image basic templates. However, the repo hasn't been updated to support the newer distributions yet, and I need to stick to CentOS for a specific project.
In terms of best practices, should I stick to CentOS 7.x as a known safe default, or or try to lift up the DevSec Linux Baseline to support CentOS 8.x instead, without really knowing what I'm doing?
https://redd.it/ezq838
@r_devops
GitHub
GitHub - dev-sec/linux-baseline: DevSec Linux Baseline - InSpec Profile
DevSec Linux Baseline - InSpec Profile. Contribute to dev-sec/linux-baseline development by creating an account on GitHub.
Build a Serverless appliance with cloud-init and faasd
Have you heard of faasd, [the new provider](https://docs.openfaas.com/architecture/faas-provider/) for OpenFaaS? It's just like OpenFaaS on Kubernetes, the same API, same UI, CLI and ecosystem, but without the complexity and stress of running a scale-out distributed system.
In this short tutorial I'll show you how to leverage cloud-init, a standard way to install packages and to configure cloud hosts to get a faasd host in less than 5 minutes flat. Or your money back.
[https://blog.alexellis.io/deploy-serverless-faasd-with-cloud-init/](https://blog.alexellis.io/deploy-serverless-faasd-with-cloud-init/)
If you're avoiding Kubernetes, or keen to use the right tool for the right job, would you use this? What would you like to see in terms of documentation and literature around it? If you try out the tutorial, please let me know what you think.
https://redd.it/ezpybt
@r_devops
Have you heard of faasd, [the new provider](https://docs.openfaas.com/architecture/faas-provider/) for OpenFaaS? It's just like OpenFaaS on Kubernetes, the same API, same UI, CLI and ecosystem, but without the complexity and stress of running a scale-out distributed system.
In this short tutorial I'll show you how to leverage cloud-init, a standard way to install packages and to configure cloud hosts to get a faasd host in less than 5 minutes flat. Or your money back.
[https://blog.alexellis.io/deploy-serverless-faasd-with-cloud-init/](https://blog.alexellis.io/deploy-serverless-faasd-with-cloud-init/)
If you're avoiding Kubernetes, or keen to use the right tool for the right job, would you use this? What would you like to see in terms of documentation and literature around it? If you try out the tutorial, please let me know what you think.
https://redd.it/ezpybt
@r_devops
Openfaas
FaaS Provider - OpenFaaS
OpenFaaS - Serverless Functions Made Simple
Do you use Pull Panda or similar tool to solve the issue of unnoticed code reviews?
https://redd.it/f08uaa
@r_devops
https://redd.it/f08uaa
@r_devops
reddit
Do you use Pull Panda or similar tool to solve the issue of...
Posted in r/devops by u/JohanTHEDEV • 1 point and 1 comment
Step by step guide for DevOps or any other Operations Role
\*Hello Noobs , who wants to begin this journey with me , i highly recommend Myself , a young sys administrator with a lot of motivation to succeed in this field .... check out the link to see the roadmap.
https://redd.it/ezqs5o
@r_devops
\*Hello Noobs , who wants to begin this journey with me , i highly recommend Myself , a young sys administrator with a lot of motivation to succeed in this field .... check out the link to see the roadmap.
https://redd.it/ezqs5o
@r_devops
reddit
Step by step guide for DevOps or any other Operations Role
\*Hello Noobs , who wants to begin this journey with me , i highly recommend Myself , a young sys administrator with a lot of motivation to...
VPN *INTO* China
Hi guys,
I just received a very... unusual requests from one of my clients.
He's located in EU and needs a possibility to connect to an FTP server located in China.
Of course, port 21/22 is blocked from outside of China and of course a special whitelisting rule cannot be added.
Because... why would it be so simple?
So my question is: Do any of you know of some sort of VPN/Proxy/server in a basement that I can use in order to "get into China"?
Thanks...
https://redd.it/f0a07m
@r_devops
Hi guys,
I just received a very... unusual requests from one of my clients.
He's located in EU and needs a possibility to connect to an FTP server located in China.
Of course, port 21/22 is blocked from outside of China and of course a special whitelisting rule cannot be added.
Because... why would it be so simple?
So my question is: Do any of you know of some sort of VPN/Proxy/server in a basement that I can use in order to "get into China"?
Thanks...
https://redd.it/f0a07m
@r_devops
reddit
VPN *INTO* China
Hi guys, I just received a very... unusual requests from one of my clients. He's located in EU and needs a possibility to connect to an FTP...
Looking for recommendations on a Orchestration tool for my specific use case
I wish to orchestrate the following
Terraform plan/apply to AWS
Packer build for AMI’s
Ansible for configuration within the client OS
It is for a new project, I already have good knowledge of the above but need to bring in an orchestration layer above, as currently ops are pushing manually to AWS
Goals
Changes are made within a Git repo by a ops engineer and are put through several automated steps to validate and obtain approval prior to deploy
LDAP integration
UI to be view deployments
Secure
Highly Available
Easy to manage (Team is made up of mainly infrastructure folks, not developers)
I was leaning towards Jenkins but not sure if its over kill for our requirements - we don’t develop applications only automate the deployment of infrastructure and deployment of instances etc
I appreciate any advise you are able to offer
https://redd.it/f0ehzo
@r_devops
I wish to orchestrate the following
Terraform plan/apply to AWS
Packer build for AMI’s
Ansible for configuration within the client OS
It is for a new project, I already have good knowledge of the above but need to bring in an orchestration layer above, as currently ops are pushing manually to AWS
Goals
Changes are made within a Git repo by a ops engineer and are put through several automated steps to validate and obtain approval prior to deploy
LDAP integration
UI to be view deployments
Secure
Highly Available
Easy to manage (Team is made up of mainly infrastructure folks, not developers)
I was leaning towards Jenkins but not sure if its over kill for our requirements - we don’t develop applications only automate the deployment of infrastructure and deployment of instances etc
I appreciate any advise you are able to offer
https://redd.it/f0ehzo
@r_devops
reddit
Looking for recommendations on a Orchestration tool for my...
I wish to orchestrate the following Terraform plan/apply to AWS Packer build for AMI’s Ansible for configuration within the client OS It is for...
Is Packer still the best choice for building images for multiple clouds?
We need to run custom images on a number of clouds and currently this is mostly done through bash scripts and the like. I was looking into using Packer to consolidate all this under one tool, is it a good choice? Any competing tools that show promise?
https://redd.it/f09m2o
@r_devops
We need to run custom images on a number of clouds and currently this is mostly done through bash scripts and the like. I was looking into using Packer to consolidate all this under one tool, is it a good choice? Any competing tools that show promise?
https://redd.it/f09m2o
@r_devops
reddit
Is Packer still the best choice for building images for multiple...
We need to run custom images on a number of clouds and currently this is mostly done through bash scripts and the like. I was looking into using...