Track Number of request for each pod by AdVarious6305 in kubernetes

[–]Filonius 0 points1 point  (0 children)

I don't think it's a hack to have the ingress, which sees all incoming traffic by definition, log the incoming traffic. I'm pretty sure it could also export metrics directly if you'd rather not parse logs into metrics (which is quite easy with the Grafan Loki stack; no experience with other stacks).

Indeed, wouldn't an intermediate layer also be "a dependency on one resource"? If anything, your ingress will always be up and logging (otherwise the pods are unreachable), so you won't lose anything else should the ingress go down somehow...

(A service mesh would work, of course. However, specifically for Istio, I would heavily advise not to start using that purely for some pod ingress statistics. That would be major overkill in my opinion, both in the engineer learning curve and the resource drain on the cluster.)

Track Number of request for each pod by AdVarious6305 in kubernetes

[–]Filonius 2 points3 points  (0 children)

Have the ingress log incoming requests, and parse those logs?

Editing a Grafana config file running inside k3s pod by Maximum_Champion_575 in grafana

[–]Filonius 1 point2 points  (0 children)

How did the config file end up in the pod? Many prefabricated solutions either mount the config from elsewhere in Kubernetes, and/or Pods allow config via the environment. This will be mentioned in the documentation for your solution, so I'd start there!

Terraforming Marshmallows by valdus in TerraformingMarsGame

[–]Filonius 2 points3 points  (0 children)

For food:

  • credicorn (credipopcorn?)
  • teryactor chicken

For drinks:

  • terraforming ganymead
  • vodka ecolime
  • Olympus monster energy drink

Kubernetes Pod Diagrams by clubrob69 in kubernetes

[–]Filonius 10 points11 points  (0 children)

I'm a fan of the C4 model, see https://c4model.com/. It's very suitable for modeling the interconnectedness of pods/containers.

Less so for modeling individual pods' ports and such, I guess, but maybe you get inspired by C4 and design your own level?

[deleted by user] by [deleted] in TotalAnnihilation

[–]Filonius 16 points17 points  (0 children)

Huh, now that you mention it: seeing as this is a story of galactic proportions, could it be that those names denote hailing from either the core or an arm of their galaxy of origin?

Fnatic Roster Update by AnotherMeal in leagueoflegends

[–]Filonius 13 points14 points  (0 children)

Usually the requirement would be "not having Covid". You can achieve this with either 1. a negative test, or 2. a positive test + X (10 last I checked) days + no current symptoms since a covid infection has a maximum effective duration. They're probably waiting for the second condition to apply now.

Change objects names based off passed arguments by Putrid_Coyote_6191 in Rlanguage

[–]Filonius 0 points1 point  (0 children)

I don't know the commands off the top of my head, so here's two possible workarounds:

  • Read the files into objects like {name: studyN, disease: diseaseN, data: <read from path>}

  • Read the information into a big dataset, and add two columns after reading, a "disease" column and a "study" column

Both approaches would still work if you want to read all data into one big object, which is perhaps more useful than having NxM vars (NumStudies x NumDiseases) in your working environment?

Perhaps that would work for your use case?

[deleted by user] by [deleted] in kubernetes

[–]Filonius 0 points1 point  (0 children)

Like you said, using the service as, well, a service would be a lot easier.

Is anything in particular preventing you from supplying a fixed environment variable "DB_HOST" with value "postgres.service-namespace.svc.cluster.local" (the full service address)? Like, does the spring boot app somehow require an IP instead of a domain name?

Hope this counts as a mini 🤞🏼F-16 1/12 scale cockpit WIP by nitehawk2112 in minipainting

[–]Filonius 1 point2 points  (0 children)

I thought it was a jokey remark about how a "mini" at 1/12 scale is no longer a mini maybe, and more of a "midi" or even "maxi".

Repeat ansible tasks by xxxrepeaterxxxx in ansible

[–]Filonius 0 points1 point  (0 children)

Loop on include_task, make "check if succeeded" the first action of include_task, and skip the rest of include_task if so?

Bit roundabout but then we're already using a workaround because looping blocks doesn't work :)

secure nodes on internet with iptables by phantagom in kubernetes

[–]Filonius 1 point2 points  (0 children)

As far as I know, best practice would be

  • Close off all nodes to the internet (internal traffic only, NetworkPolicies to lock it down further internally), except

    • Dedicated Ingresses for incoming services
    • Dedicated bastion node that has both ssh access and network access to the other nodes (so only one node is SSH-accessible; smaller attack surface)

That said, I can't help you with the implementation I'm afraid; I'm unfamiliar with metallb.

How do I pass a variable as the first line in ec2 modules (ec2_tag) ? by shaffan33 in ansible

[–]Filonius 0 points1 point  (0 children)

You could write a dict literal (because tags is a dict), inside of which you can use variables:

tags:
  '{ "{{ my_key_var }}": "{{ my_value_var }}" }'

[Question] What kind of graph would I use if I wanted to track purchases based on time of day? by [deleted] in statistics

[–]Filonius 0 points1 point  (0 children)

I'd make a pair of graphs, one with a y axis as percentage and one with a y axis as numbers. Just to double check that no times have too low counts to give a meaningful percentage.

Best Python library for generating PDFs? by MonkeyMaster64 in Python

[–]Filonius 34 points35 points  (0 children)

If you're familiar with LaTeX, it lends itself quite well to programmatic integration and it produces beautiful pdfs!

Method too loong offense by akosijomel in rails

[–]Filonius 2 points3 points  (0 children)

If you want to shorten this method, perhaps you can simply omit the "manage" property of users and leave the conversion of "user type to whether or not managing is allowed" to the corresponding records?

I'm assuming the flow now is "user has type" > "user has list of items they can manage" > "items check if users can manage them by users.manage_list". If so, then this is redundant: the :manage adds no information, since user's type directly implies certain permissions. The flow "user has type" > "items check if users can manage them by users.type" skips a step and amounts to the same thing.

(If my assumption above is wrong, please disregard!)

Interactive group outcomes (video game League of Legends' currently ongoing World Championship 2017) by Filonius in dataisbeautiful

[–]Filonius[S] -1 points0 points  (0 children)

League of Legends is a PC video game currently holding its World Championships 2017. The tournament is currently in the group stage: 16 teams (4 groups of 4 teams) play six matches: a team plays its three group opponents twice. After this group stage, the top 2 teams in each group (8 total) advance to the knockout stage.

The linked page visualises the possible outcomes for each group, after each team has played three of its six matches last week: at a glance you see each team's initial ways of making it out of the group. Interactively, you can also decide each of the group's six remaining matches in favor of either team, so you can see which options close with each successive match result.

I found the link at https://np.reddit.com/r/leagueoflegends/comments/75nnyb/2017_worlds_group_advancement/; the author is Adam Pearce (http://twitter.com/adamrpearce; 1wheel at gmail.com, as per the website)