Questions tagged [go]
26 questions
6
votes
2 answers
In a helm template how can i use items in 1 list to iterate over another list
i want to pre-populate a kubernetes cluster with namespaces and their respective secrets for our apps and services.
For that i would like to be able to specify 2 lists, 1 list with secrets, and 1 list with namespaces. Each namespace in the list has…
rinini
- 71
4
votes
2 answers
Creating a CloudWatch Scheduled Event with arbitrary data in the `detail` field
I'd like to run a Lambda task on a fixed schedule, with some configuration passed into it by the CloudWatch Scheduled Event that triggers the task. Looking at the documentation here, I can see that Cloudwatch Scheduled Events look like this:
{
…
Chris
- 347
3
votes
1 answer
NGINX 499-ing for only one endpoint that happens to be a TCP connection
I have an API that I've written that uses TCP to bidirectionally stream data. It works perfectly fine in my local setup. But when I move to production, it never hits the endpoint.
Production server uses ELB for load balancing an EC2 instance and…
2
votes
2 answers
Using "Let's Encrypt" TLS with a Google Load Balancer? (Kubernetes/GKE)
I've been trying to test out Kubernetes on Google Cloud, but would need HTTPS/TLS (only) exposed on the deployed application. To start, I just followed this tutorial, which worked fine for plain HTTP over port 80:…
Ben Guild
- 309
- 1
- 3
- 9
2
votes
1 answer
program 'go' is currently not installed on ubuntu 16.04
I ran a sudo apt-get install golang-1.9 from my regular user account on my ubuntu 16.04 and it said everything installed correctly. So then I typed go version and verified I had the right version. Then I shut down my computer. Then I turned on my…
learningtech
- 7,769
1
vote
0 answers
Go running on App Engine terminated by container exit (1)
I have a Go app running on Google App Engine. From the logs, I find this error container exit (1). Occasionally, you will see the upstream prematurely closed connection while reading response header from upstream, client: error when the container…
user2054002
- 11
1
vote
2 answers
K3S arm64 distributed files systems
I deployed a K3S Cluster on arm64 and I need to have a DFS directly on-premise, It will be better to have it running on the kubernetes stack.
Regarding DFS choices there are some options, but...:
GlusterFS: Unfortunately CSI drivers is not currently…
GoA Oz
- 113
1
vote
1 answer
Golang PUT using form data and file
I'm fairly new to learning golang, but I hope someone can help...
I'm trying to replicate a process I can do using curl. Essentially I need to create a PUT request, using form data and the contents of a file.
The `curl request looks like this:
curl…
Anonymous
- 21
1
vote
1 answer
Grafana - Have a View Panel button on email notification
I'm switching from Grafana 8 with legacy alerting to Grafana 10.3 with the new unified alerting system. I'd like the email notifications to have buttons to access the dashboard and panel linked to the alert, just like the old alerting system. I know…
Ror
- 383
1
vote
1 answer
Idflags is not working for setting Version for go build
I am fairly new to using Go and I have noticed when I build the Go project I have cloned from GitHub via:
$ go build
The executable is built, but when I run:
$ mediamtx --version
I get v0.0.0
I Googled the issue and found that I could set the…
Jeremy Leys
- 21
1
vote
0 answers
Relate session and NAT logs in near real-time
I have a user activity logger and querying system for an ISP with very high log events rate (5k-10K /second). It needs to relate both Radius/Session and NAT Syslogs based on a common InternalIP field. Each session has two events Start and Stop. A…
iamadnan
- 11
1
vote
2 answers
How to properly forward the request remote address to a proxied Go service?
I have a simple go service that checks the request IP address by using Request.RemoteAddr from the standard net/http package.
This go service is deployed behind nginx with the following simple location configuration:
location /api {
proxy_pass…
P.Larich
- 11
1
vote
0 answers
Increase TCP server listen backlog size on Windows
I'm developing TCP server in Go which should be able to accept up to 500 simultaneous client connections.
I'm using net.Listen("tcp4", listenerAddress) to create my TCP listener.
I had a problem on Linux when all the 500 clients connect at the same…
jozols
- 111
- 1
- 2
1
vote
1 answer
Issue running Golang server binary as a service with Systemd
I am trying to run a Golang server binary as a service with Systemd on Centos 8, but I get an error.
This is my script…
Daniele B
- 387
0
votes
1 answer
Weird issue with linux network namespace switching
I'm writing a small prometheus exporter in Go to publish network metrics for docker containers.
There is a goroutine which gathers the values in the following way:
1. Get all docker containers using docker SDK
2. Locks the goroutine in its current…
cosenmarco
- 11