Testing within DevOps
Hello, I know this is a bit of a taboo subject with DevOps engineers but my DevOps team has recently brought in a QA/Automation engineer into the team ( Me :) ), I was wondering if there are any tips or tools that you recommend me looking into? I can't find much on testing within DevOps but I have made a start at things like Pester, Chaos Monkey and Ansible.
https://redd.it/eellt6
@r_devops
Hello, I know this is a bit of a taboo subject with DevOps engineers but my DevOps team has recently brought in a QA/Automation engineer into the team ( Me :) ), I was wondering if there are any tips or tools that you recommend me looking into? I can't find much on testing within DevOps but I have made a start at things like Pester, Chaos Monkey and Ansible.
https://redd.it/eellt6
@r_devops
reddit
Testing within DevOps
Hello, I know this is a bit of a taboo subject with DevOps engineers but my DevOps team has recently brought in a QA/Automation engineer into the...
Trying to learn too much too quick, what should I prioritize?
Hi all, I just would like a bit of advice. I currently work in DevOps for my company. I was the first iteration of a DevOps and the only one however I feel my skill set is seriously lacking and I want to try and skill up so that I'm prepared a bit more for the future and what tasks/projects that may bring.
I got moved into this position due to a strong ops/infrastructure/release background but I had zero dev knowledge/experience. So I started trying to learn Python, C#, Powershell. I didn't get too far with any of them as I kept splitting my time and resources between them but I learnt enough Python so that I could build a monitoring system using Python/Selenium/Prometheus and Grafana and just the barebones of PowerShell so that I could automate a few boring tasks/know how to google and implement scripts I found.
All my experience is On-Prem so I started trying to learn AWS and Azure via online courses and playing around with them but the problem I was finding is the Azure stuff was changing too quickly and because I was spreading myself thin I was struggling to keep up. Also, I only know Windows so I started trying to pick up Linux etc.
Then on top of that because literally everything I see about DevOps is to do with containers so I started trying to learn about Docker and Kubernetes. The problem I am facing is I don't really know what to prioritise, my work situation is very strange at the moment so currently there isn't any expansion for moving forward with technology and my free time isn't massive and I feel the last few months I haven't really learnt much because I hit a point where it felt like I wasn't absorbing information.
​
So coming up to the new year I'd like to prioritise what I should learn so I can set some achievable goals so I can actually progress things. Any help or advice would be greatly appreciated.
Merry Christmas :)
https://redd.it/eeiywa
@r_devops
Hi all, I just would like a bit of advice. I currently work in DevOps for my company. I was the first iteration of a DevOps and the only one however I feel my skill set is seriously lacking and I want to try and skill up so that I'm prepared a bit more for the future and what tasks/projects that may bring.
I got moved into this position due to a strong ops/infrastructure/release background but I had zero dev knowledge/experience. So I started trying to learn Python, C#, Powershell. I didn't get too far with any of them as I kept splitting my time and resources between them but I learnt enough Python so that I could build a monitoring system using Python/Selenium/Prometheus and Grafana and just the barebones of PowerShell so that I could automate a few boring tasks/know how to google and implement scripts I found.
All my experience is On-Prem so I started trying to learn AWS and Azure via online courses and playing around with them but the problem I was finding is the Azure stuff was changing too quickly and because I was spreading myself thin I was struggling to keep up. Also, I only know Windows so I started trying to pick up Linux etc.
Then on top of that because literally everything I see about DevOps is to do with containers so I started trying to learn about Docker and Kubernetes. The problem I am facing is I don't really know what to prioritise, my work situation is very strange at the moment so currently there isn't any expansion for moving forward with technology and my free time isn't massive and I feel the last few months I haven't really learnt much because I hit a point where it felt like I wasn't absorbing information.
​
So coming up to the new year I'd like to prioritise what I should learn so I can set some achievable goals so I can actually progress things. Any help or advice would be greatly appreciated.
Merry Christmas :)
https://redd.it/eeiywa
@r_devops
reddit
Trying to learn too much too quick, what should I prioritize?
Hi all, I just would like a bit of advice. I currently work in DevOps for my company. I was the first iteration of a DevOps and the only one...
Cloud-Native Logging And Monitoring Pattern
**Folks,**
Since the early ages of mainframes and punch-card programming, there have always been gauges for monitoring the system’s temperature and power among other things.
Here is This week Article [Cloud-Native Logging And Monitoring Pattern](https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern).
**What's inside:**
* The Need For Observability in The Cloud-Native World.
* Cloud-Native Logging/Kubernetes Logging.
* Cloud-Native Metrics.
* The Pull-Based Method/The Push-Based Method.
[https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern](https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern)
https://redd.it/ef2jty
@r_devops
**Folks,**
Since the early ages of mainframes and punch-card programming, there have always been gauges for monitoring the system’s temperature and power among other things.
Here is This week Article [Cloud-Native Logging And Monitoring Pattern](https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern).
**What's inside:**
* The Need For Observability in The Cloud-Native World.
* Cloud-Native Logging/Kubernetes Logging.
* Cloud-Native Metrics.
* The Pull-Based Method/The Push-Based Method.
[https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern](https://www.magalix.com/blog/cloud-native-logging-and-monitoring-pattern)
https://redd.it/ef2jty
@r_devops
Magalix
Cloud-Native Logging And Monitoring Pattern
The Microservices pattern that cloud-native apps follow makes systems highly distributed one. so monitoring, and logging need to be approached differently.
Need some experienced devs / hackers
Hey guys, I’m looking for some very experienced devs / hackers to work on a project with serious money within it, drop me a message if you want work on it
https://redd.it/eejxsj
@r_devops
Hey guys, I’m looking for some very experienced devs / hackers to work on a project with serious money within it, drop me a message if you want work on it
https://redd.it/eejxsj
@r_devops
reddit
Need some experienced devs / hackers
Hey guys, I’m looking for some very experienced devs / hackers to work on a project with serious money within it, drop me a message if you want...
GDPR for operating systems
As I value privacy a lot along with respect the GDPR law, why are operating systems not complying to this law? When I log into a linux server, the first thing it says is: `Last login: ... <ip-address>`. It actually keeps track of my ip address. I actually never took time to further investigate what it does with your IP address, but assume the server got hacked, there is sensitive login information from all the devs who logged in to the server.
Why is this law not respected by operating systems? Is it necessary to do so?
https://redd.it/eedwv4
@r_devops
As I value privacy a lot along with respect the GDPR law, why are operating systems not complying to this law? When I log into a linux server, the first thing it says is: `Last login: ... <ip-address>`. It actually keeps track of my ip address. I actually never took time to further investigate what it does with your IP address, but assume the server got hacked, there is sensitive login information from all the devs who logged in to the server.
Why is this law not respected by operating systems? Is it necessary to do so?
https://redd.it/eedwv4
@r_devops
reddit
GDPR for operating systems
As I value privacy a lot along with respect the GDPR law, why are operating systems not complying to this law? When I log into a linux server, the...
When should you use Terraform over provider API?
If a service has an API and is also a Terraform provider, how do you determine which to use? If you already built python classes and toolkits that utilizes the API, should you migrate to Terraform?
https://redd.it/edcbq9
@r_devops
If a service has an API and is also a Terraform provider, how do you determine which to use? If you already built python classes and toolkits that utilizes the API, should you migrate to Terraform?
https://redd.it/edcbq9
@r_devops
reddit
When should you use Terraform over provider API?
If a service has an API and is also a Terraform provider, how do you determine which to use? If you already built python classes and toolkits that...
Where to host for eastern Europe and China
Hi everyone, I'm a dev ops engineer in the US with experience in mainly GCP and some aws. I'm relatively new to things like site speed but I'm learning about latency and how optimizing for regions in the US is important.
I'm working on a project that would be primarily servicing eastern Europe and China. I see hosting in China is possible on GCP and aws but I can't seem to find a cloud platform in eastern Europe. Anyone able to point me in the right direction?
https://redd.it/edbs59
@r_devops
Hi everyone, I'm a dev ops engineer in the US with experience in mainly GCP and some aws. I'm relatively new to things like site speed but I'm learning about latency and how optimizing for regions in the US is important.
I'm working on a project that would be primarily servicing eastern Europe and China. I see hosting in China is possible on GCP and aws but I can't seem to find a cloud platform in eastern Europe. Anyone able to point me in the right direction?
https://redd.it/edbs59
@r_devops
reddit
Where to host for eastern Europe and China
Hi everyone, I'm a dev ops engineer in the US with experience in mainly GCP and some aws. I'm relatively new to things like site speed but I'm...
Database schema changes
I'm current working with the LAMP stack and extrapolating everything into microservices and implementing immutable infrastructure. The one issue I'm having conceptually is how to manage database schema changes via atomic / immutable infrastructure.
Currently our websites will experience downtime when updating the software where database schema changes occur and I was hoping to get some advice on how to avoid this using containerisation.
Thanks
https://redd.it/edbdjz
@r_devops
I'm current working with the LAMP stack and extrapolating everything into microservices and implementing immutable infrastructure. The one issue I'm having conceptually is how to manage database schema changes via atomic / immutable infrastructure.
Currently our websites will experience downtime when updating the software where database schema changes occur and I was hoping to get some advice on how to avoid this using containerisation.
Thanks
https://redd.it/edbdjz
@r_devops
reddit
Database schema changes
I'm current working with the LAMP stack and extrapolating everything into microservices and implementing immutable infrastructure. The one issue...
Is this a devops role? What should I be learning?
Hi everyone, I'm starting an internship in a few weeks and I'm trying to study some concepts in advance so I won't be completely lost when I start. The responsibilities seem to be related to what a devops position would have, but it's on the "Tools" team and I'm not sure of what I should be learning before I start. Some of the job responsibilities on the description are:
- Create internal tooling frameworks that help teams simplify environment management and monitoring.
- Utilize CI/CD and other tools to help other engineers to self-service day to day operations.
- Explore image & container-based build, testing, and deployment strategies.
- Investigate new ways to automate deployments, canary analysis, and rollbacks.
I'm a complete beginner to all of these concepts with no experience regarding CI/CD pipelines, containers, and automation deployments. Currently I'm thinking about starting this [devops learning path on Linux Academy] (https://linuxacademy.com/learning-path/junior-devops-engineer-entry-level/) but skipping the Linux Foundation course because that seems less relevant. Is that a good idea? If not, any suggestions on better places I could get started would be greatly appreciated.
Merry Christmas!
https://redd.it/efct7w
@r_devops
Hi everyone, I'm starting an internship in a few weeks and I'm trying to study some concepts in advance so I won't be completely lost when I start. The responsibilities seem to be related to what a devops position would have, but it's on the "Tools" team and I'm not sure of what I should be learning before I start. Some of the job responsibilities on the description are:
- Create internal tooling frameworks that help teams simplify environment management and monitoring.
- Utilize CI/CD and other tools to help other engineers to self-service day to day operations.
- Explore image & container-based build, testing, and deployment strategies.
- Investigate new ways to automate deployments, canary analysis, and rollbacks.
I'm a complete beginner to all of these concepts with no experience regarding CI/CD pipelines, containers, and automation deployments. Currently I'm thinking about starting this [devops learning path on Linux Academy] (https://linuxacademy.com/learning-path/junior-devops-engineer-entry-level/) but skipping the Linux Foundation course because that seems less relevant. Is that a good idea? If not, any suggestions on better places I could get started would be greatly appreciated.
Merry Christmas!
https://redd.it/efct7w
@r_devops
Intro to Salt Stack Article
Since my Kubernetes article was perceived as helpful and well received, I thought I would share my Intro to Salt Stack. It's a multi article series on my journey to learning Salt Stack. I have learned quite a bit from this subreddit and wanted to share back.
I know we have some seasoned devops in here but also aspiring devops and those wanting to get a taste of it. You can easily follow the article to setup a lab.
Tell me what you think. Downvote if it is not useful but tell me why you downvoted if you do. I want to start a conversation even if its constructive criticism! :-)
https://blog.woohoosvcs.com/2019/11/introduction-to-saltstack/
https://redd.it/edargq
@r_devops
Since my Kubernetes article was perceived as helpful and well received, I thought I would share my Intro to Salt Stack. It's a multi article series on my journey to learning Salt Stack. I have learned quite a bit from this subreddit and wanted to share back.
I know we have some seasoned devops in here but also aspiring devops and those wanting to get a taste of it. You can easily follow the article to setup a lab.
Tell me what you think. Downvote if it is not useful but tell me why you downvoted if you do. I want to start a conversation even if its constructive criticism! :-)
https://blog.woohoosvcs.com/2019/11/introduction-to-saltstack/
https://redd.it/edargq
@r_devops
Woohoo Services Blog!
Configuration Management - Intro to SaltStack - Woohoo Services Blog!
This guide will help introduce the Salt Stack Configuration Management tool. It will give a high level overview and a basic install.
Automated test tool to help in CI/CD
I am new to this CI/CD thing. I know the concept is not new and it is as old as computer science itself but the buzz is new. I learned that for CI to work, you need some kind of automated tool that will test your new code and will tell if it passes or not so you can integrate it with main branch.
My question is can you point me to any such kind of tools that will automate this task? I mean let's say I am working on a project which has three modules; Login, Register, Generate Invoice. If I write a code for login, register and generating invoice than how will that tool be able to test this functionality?
https://redd.it/ed98t5
@r_devops
I am new to this CI/CD thing. I know the concept is not new and it is as old as computer science itself but the buzz is new. I learned that for CI to work, you need some kind of automated tool that will test your new code and will tell if it passes or not so you can integrate it with main branch.
My question is can you point me to any such kind of tools that will automate this task? I mean let's say I am working on a project which has three modules; Login, Register, Generate Invoice. If I write a code for login, register and generating invoice than how will that tool be able to test this functionality?
https://redd.it/ed98t5
@r_devops
reddit
Automated test tool to help in CI/CD
I am new to this CI/CD thing. I know the concept is not new and it is as old as computer science itself but the buzz is new. I learned that for CI...
Migrating from Amazon Web Services (AWS) to Google Cloud Platform (GCP)
Here's a detailed article on how our DevOps team reduced downtime to a mere fraction and could introduce new features faster. [Give it a read.](https://blog.hike.in/migration-to-google-cloud-platform-gcp-b92036429a22)
https://redd.it/ed7349
@r_devops
Here's a detailed article on how our DevOps team reduced downtime to a mere fraction and could introduce new features faster. [Give it a read.](https://blog.hike.in/migration-to-google-cloud-platform-gcp-b92036429a22)
https://redd.it/ed7349
@r_devops
Medium
Migration to Google Cloud Platform (GCP)
[Part 2 of 2] By Neeraj Khandelwal, Senior Engineering Manager-DevOps, Hike
Are there any good books (or book chapters) or articles on the theory and maths for performance testing?
Most load testing tools produce reports with mean, max, and percentile details. For example [this](https://jmeter.apache.org/usermanual/generating-dashboard.html) is a JMeter report.
But:
* How should we interpret the details in this report?
* What would be the success criteria?
* How can I make sure that my test is actually relevant and capturing the right details?
Are there any good books, papers, or articles that cover these topics?
https://redd.it/ed1p4c
@r_devops
Most load testing tools produce reports with mean, max, and percentile details. For example [this](https://jmeter.apache.org/usermanual/generating-dashboard.html) is a JMeter report.
But:
* How should we interpret the details in this report?
* What would be the success criteria?
* How can I make sure that my test is actually relevant and capturing the right details?
Are there any good books, papers, or articles that cover these topics?
https://redd.it/ed1p4c
@r_devops
I purchased a domain name from name.com and hosting my site at aws lightsail, where could I configure a forwarding email address?
Say I want an email address like [email protected], which only forwards it to my other account on gmail, do I need to set it up with name.com or with aws? Since AWS is providing nameserver?
Solution : If anyone else, faces the same issue, I used yandex mail service, and added mx record, spf record, and dkim signatures in lisghtsail's domain configuration.
https://redd.it/eczhuh
@r_devops
Say I want an email address like [email protected], which only forwards it to my other account on gmail, do I need to set it up with name.com or with aws? Since AWS is providing nameserver?
Solution : If anyone else, faces the same issue, I used yandex mail service, and added mx record, spf record, and dkim signatures in lisghtsail's domain configuration.
https://redd.it/eczhuh
@r_devops
reddit
I purchased a domain name from name.com and hosting my site at aws...
Say I want an email address like [email protected], which only forwards it to my other account on gmail, do I need to set it up with name.com or...
RollingUpdate Deployment on AKS is killing all POD's
Hi, i'm a DevOps Engineer and i have a issue with the RollingUpdate Deployment on AKS (Azure). When I try to execute a a pipeline in the stage of deploy that execute a RollingUpdate Strategy deployment on AKS the process kill all the POD's.
With this code:
`spec:`
`progressDeadlineSeconds: 60`
`strategy:`
`type: RollingUpdate`
`rollingUpdate:`
`maxUnavailable: 1`
`maxSurge: 1`
​
I see this topic on Stack but I didn't find anything that works
[https://stackoverflow.com/questions/46369100/kubernetes-rolling-update-killing-off-old-pod-without-bringing-up-new-one](https://stackoverflow.com/questions/46369100/kubernetes-rolling-update-killing-off-old-pod-without-bringing-up-new-one)
https://redd.it/ecv3qm
@r_devops
Hi, i'm a DevOps Engineer and i have a issue with the RollingUpdate Deployment on AKS (Azure). When I try to execute a a pipeline in the stage of deploy that execute a RollingUpdate Strategy deployment on AKS the process kill all the POD's.
With this code:
`spec:`
`progressDeadlineSeconds: 60`
`strategy:`
`type: RollingUpdate`
`rollingUpdate:`
`maxUnavailable: 1`
`maxSurge: 1`
​
I see this topic on Stack but I didn't find anything that works
[https://stackoverflow.com/questions/46369100/kubernetes-rolling-update-killing-off-old-pod-without-bringing-up-new-one](https://stackoverflow.com/questions/46369100/kubernetes-rolling-update-killing-off-old-pod-without-bringing-up-new-one)
https://redd.it/ecv3qm
@r_devops
Stack Overflow
Kubernetes - Rolling update killing off old pod without bringing up new one
I am currently using Deployments to manage my pods in my K8S cluster.
Some of my deployments require 2 pods/replicas, some require 3 pods/replicas and some of them require just 1 pod/replica. The ...
Some of my deployments require 2 pods/replicas, some require 3 pods/replicas and some of them require just 1 pod/replica. The ...
Things to have in a resume for someone who wants to switch from developer to DevOps engineer
I have worked as a developer for more than 3 years. For the last 1 year I have been working with AWS, learning architecture and CICD in cloud. I will go for the solutions architect associate exam very soon. Now I want to apply for DevOps related jobs as I find it more interesting. I want to know what are the dos and don'ts for the resume. Thanks in advance. 🙂
https://redd.it/ecoy41
@r_devops
I have worked as a developer for more than 3 years. For the last 1 year I have been working with AWS, learning architecture and CICD in cloud. I will go for the solutions architect associate exam very soon. Now I want to apply for DevOps related jobs as I find it more interesting. I want to know what are the dos and don'ts for the resume. Thanks in advance. 🙂
https://redd.it/ecoy41
@r_devops
reddit
Things to have in a resume for someone who wants to switch from...
I have worked as a developer for more than 3 years. For the last 1 year I have been working with AWS, learning architecture and CICD in cloud. I...
Serverless approach or Kubernetes Cluster Approach for Banking System
Hi , I am new to serverless architecture. I am about to create a banking application. Is it a good idea to develop my whole system using serverless architecture (using AWS SAM) or should it be a combination of both Serverless and Kubernetes Cluster. Thanks in advance
https://redd.it/ecor5c
@r_devops
Hi , I am new to serverless architecture. I am about to create a banking application. Is it a good idea to develop my whole system using serverless architecture (using AWS SAM) or should it be a combination of both Serverless and Kubernetes Cluster. Thanks in advance
https://redd.it/ecor5c
@r_devops
reddit
Serverless approach or Kubernetes Cluster Approach for Banking System
Hi , I am new to serverless architecture. I am about to create a banking application. Is it a good idea to develop my whole system using...
Using Node, Git and SFTP for automated deployments
I plan to write a Node script that finds the changed files with Git and then deploys them to the server with SFTP. Is this an okay approach?
https://redd.it/ecokx7
@r_devops
I plan to write a Node script that finds the changed files with Git and then deploys them to the server with SFTP. Is this an okay approach?
https://redd.it/ecokx7
@r_devops
reddit
Using Node, Git and SFTP for automated deployments
I plan to write a Node script that finds the changed files with Git and then deploys them to the server with SFTP. Is this an okay approach?
I Want to learn Linux Administration
Hi everyone
I would like to learn Linux administration. i am very new to this.. I have already started with Linux Bible Ninth Edition. In the end I would like to get certified.
Can the experts in the community can help me as in any other books should i refer to.
​
Thank you
Sumesh
https://redd.it/ecohy7
@r_devops
Hi everyone
I would like to learn Linux administration. i am very new to this.. I have already started with Linux Bible Ninth Edition. In the end I would like to get certified.
Can the experts in the community can help me as in any other books should i refer to.
​
Thank you
Sumesh
https://redd.it/ecohy7
@r_devops
reddit
I Want to learn Linux Administration
Hi everyone I would like to learn Linux administration. i am very new to this.. I have already started with Linux Bible Ninth Edition. In the...
Silly question: What exactly should I do if my build fails in CI/CD process?
So I am a newbie who implemented CI/CD using github actions for a node project. I pushed code which will fail tests and cause a build failure on push to github but the problem is my changes are committed to the branch even if the build failed. Is this expected behavior? How should I handle my build failures?
https://redd.it/efmtep
@r_devops
So I am a newbie who implemented CI/CD using github actions for a node project. I pushed code which will fail tests and cause a build failure on push to github but the problem is my changes are committed to the branch even if the build failed. Is this expected behavior? How should I handle my build failures?
https://redd.it/efmtep
@r_devops
reddit
Silly question: What exactly should I do if my build fails in...
So I am a newbie who implemented CI/CD using github actions for a node project. I pushed code which will fail tests and cause a build failure on...
Issues connecting to consul installed via Helm
I have a Kubernetes cluster that was created using KOPS which I have consul installed on via the helm chart with default values except server count and bootstrapexpect are both set to 1 because of this being a small test cluster - 2 workers and single master
I have a Node.js application that I am trying to connect to Consul. Below are the logs for what I think is relavent information, if I am missing something useful ask and I can provide it likely.
​
Error message given by my applcation seen by doing kubectl logs <pod>
{"message":"Error: Error: connect ECONNREFUSED 10.0.32.42:8500","level":"error"}
/opt/node_app/app/middleware/authorization.js:13
throw err;
^
Error: connect ECONNREFUSED 10.0.32.42:8500
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '10.0.32.42',
port: 8500
}
kubectl describe consul server 0
I'm aware this one is showing rediness probe failed however I can't figure out why
Name: consul-consul-server-0
Namespace: development
Priority: 0
Node: ip-10-0-32-42.ec2.internal/10.0.32.42
Start Time: Wed, 18 Dec 2019 19:32:24 -0500
Labels: app=consul
chart=consul-helm
component=server
controller-revision-hash=consul-consul-server-6c689958b9
hasDNS=true
release=consul
statefulset.kubernetes.io/pod-name=consul-consul-server-0
Annotations: consul.hashicorp.com/connect-inject: false
Status: Running
IP: 100.96.21.3
Controlled By: StatefulSet/consul-consul-server
Containers:
consul:
Container ID: docker://05acd44001b0702aa7219f6c5b2217ab3d9615b5b33b363720c98bc0b8c87ce9
Image: consul:1.6.2
Image ID: docker-pullable://consul@sha256:a167e7222c84687c3e7f392f13b23d9f391cac80b6b839052e58617dab714805
Ports: 8500/TCP, 8301/TCP, 8302/TCP, 8300/TCP, 8600/TCP, 8600/UDP
Host Ports: 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/UDP
Command:
/bin/sh
-ec
CONSUL_FULLNAME="consul-consul"
exec /bin/consul agent \
-advertise="${POD_IP}" \
-bind=0.0.0.0 \
-bootstrap-expect=1 \
-client=0.0.0.0 \
-config-dir=/consul/config \
-datacenter=dc1 \
-data-dir=/consul/data \
-domain=consul \
-hcl="connect { enabled = true }" \
-ui \
-retry-join=${CONSUL_FULLNAME}-server-0.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \
-server
State: Running
Started: Wed, 18 Dec 2019 19:32:33 -0500
Ready: True
Restart Count: 0
Readiness: exec [/bin/sh -ec curl https://127.0.0.1:8500/v1/status/leader 2>/dev/null | \
grep -E '".+"'
] delay=5s timeout=5s period=3s #success=1 #failure=2
Environment:
POD_IP: (v1:status.podIP)
NAMESPACE: development (v1:metadata.namespace)
Mounts:
/consul/config from config (rw)
/consul/data from data-development (rw)
/var/run/secrets/kubernetes.io/serviceaccount from consul-consul-server-token-42ss6 (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
data-development:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: data-development-consul-consul-server-0
ReadOnly: false
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: consul-consul-server-config
Optional: false
consul-consul-server-token-
I have a Kubernetes cluster that was created using KOPS which I have consul installed on via the helm chart with default values except server count and bootstrapexpect are both set to 1 because of this being a small test cluster - 2 workers and single master
I have a Node.js application that I am trying to connect to Consul. Below are the logs for what I think is relavent information, if I am missing something useful ask and I can provide it likely.
​
Error message given by my applcation seen by doing kubectl logs <pod>
{"message":"Error: Error: connect ECONNREFUSED 10.0.32.42:8500","level":"error"}
/opt/node_app/app/middleware/authorization.js:13
throw err;
^
Error: connect ECONNREFUSED 10.0.32.42:8500
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '10.0.32.42',
port: 8500
}
kubectl describe consul server 0
I'm aware this one is showing rediness probe failed however I can't figure out why
Name: consul-consul-server-0
Namespace: development
Priority: 0
Node: ip-10-0-32-42.ec2.internal/10.0.32.42
Start Time: Wed, 18 Dec 2019 19:32:24 -0500
Labels: app=consul
chart=consul-helm
component=server
controller-revision-hash=consul-consul-server-6c689958b9
hasDNS=true
release=consul
statefulset.kubernetes.io/pod-name=consul-consul-server-0
Annotations: consul.hashicorp.com/connect-inject: false
Status: Running
IP: 100.96.21.3
Controlled By: StatefulSet/consul-consul-server
Containers:
consul:
Container ID: docker://05acd44001b0702aa7219f6c5b2217ab3d9615b5b33b363720c98bc0b8c87ce9
Image: consul:1.6.2
Image ID: docker-pullable://consul@sha256:a167e7222c84687c3e7f392f13b23d9f391cac80b6b839052e58617dab714805
Ports: 8500/TCP, 8301/TCP, 8302/TCP, 8300/TCP, 8600/TCP, 8600/UDP
Host Ports: 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/UDP
Command:
/bin/sh
-ec
CONSUL_FULLNAME="consul-consul"
exec /bin/consul agent \
-advertise="${POD_IP}" \
-bind=0.0.0.0 \
-bootstrap-expect=1 \
-client=0.0.0.0 \
-config-dir=/consul/config \
-datacenter=dc1 \
-data-dir=/consul/data \
-domain=consul \
-hcl="connect { enabled = true }" \
-ui \
-retry-join=${CONSUL_FULLNAME}-server-0.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \
-server
State: Running
Started: Wed, 18 Dec 2019 19:32:33 -0500
Ready: True
Restart Count: 0
Readiness: exec [/bin/sh -ec curl https://127.0.0.1:8500/v1/status/leader 2>/dev/null | \
grep -E '".+"'
] delay=5s timeout=5s period=3s #success=1 #failure=2
Environment:
POD_IP: (v1:status.podIP)
NAMESPACE: development (v1:metadata.namespace)
Mounts:
/consul/config from config (rw)
/consul/data from data-development (rw)
/var/run/secrets/kubernetes.io/serviceaccount from consul-consul-server-token-42ss6 (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
data-development:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: data-development-consul-consul-server-0
ReadOnly: false
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: consul-consul-server-config
Optional: false
consul-consul-server-token-