Tested to work on:
- Ubuntu 23.04
Reference:
[https://fabianlee.org/2022/09/20/kvm-creating-a-bridged-network-with-netplan-on-ubuntu-22-04] [https://www.furorteutonicus.eu/2013-08-04-enabling-host-guest-networking-with-kvm-macvlan-and-macvtap]
use Mojo::Base -strict, -async_await; | |
use Test::More; | |
use Test::Mojo; | |
use Mojolicious::Lite; | |
# this gives unhandled promise warning: | |
helper get_site_title => async sub { | |
my ($c, $url) = @_; | |
my $result = (await $c->ua->get_p($url))->result; |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-proxy-to-alertmanager | |
namespace: kube-system | |
labels: | |
app: nginx-proxy-to-alertmanager | |
group: monitoring | |
component: loki |
# build a perlbrew enabled image | |
# example: docker build -t perl . | |
FROM debian:buster AS devel | |
MAINTAINER "Michael Fung <hkuser2001@gmail.com>" | |
ARG PERLVER="5.28.3" | |
ENV DEBIAN_FRONTEND noninteractive |
{ | |
"requestId": "15946482113084176451", | |
"payload": { | |
"agentUserId": "160170", | |
"devices": [ | |
{ | |
"customData": { | |
"version": "_UNDEFINED_", | |
"model": "HU2", | |
"key": "sample_key_ext" |
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS-U1710", | |
"label": "prometheus-u1710", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
static_resources: | |
listeners: | |
- address: | |
socket_address: | |
address: 10.1.1.8 | |
port_value: 443 | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: |
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS-U1710", | |
"label": "prometheus-u1710", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |