Skip to content

Instantly share code, notes, and snippets.

View manuelbuil's full-sized avatar

Manuel Buil manuelbuil

View GitHub Profile
package main
import (
"errors"
"fmt"
"net"
"strings"
)
// IPFamily refers to a specific family if not empty, i.e. "4" or "6".
package main
import (
"errors"
"fmt"
"net"
"strings"
)
// IPFamily refers to a specific family if not empty, i.e. "4" or "6".
[ec2-user@ip-10-0-10-42 ~]$ kubectl get pods -A -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kube-system coredns-85cb69466-kqsq5 1/1 Running 0 110s 10.42.0.6 ip-10-0-10-42.eu-west-3.compute.internal <none> <none>
kube-system local-path-provisioner-64ffb68fd-gzr7c 1/1 Running 0 110s 10.42.0.2 ip-10-0-10-42.eu-west-3.compute.internal <none> <none>
kube-system metrics-server-9cf544f65-m7tnb 1/1 Running 0 110s 10.42.0.4 ip-10-0-10-42.eu-west-3.compute.internal <none> <none>
kube-system helm-install-traefik-crd--1-4ktw4 0/1 Completed 0 111s 10.42.0.5 ip-10-0-10-42.eu-west-3.compute.internal <none> <none>
kube-system helm-install-traefik--1-6nwxj 0/1 Completed 1 111s 1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: multitool
name: multitool-deployment
spec:
replicas: 2
selector:
matchLabels:
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default details ClusterIP 10.105.173.58 <none> 9080/TCP 3h19m
default kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 3d23h
default productpage ClusterIP 10.111.125.162 <none> 9080/TCP 3h19m
default ratings ClusterIP 10.108.3.133 <none> 9080/TCP
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: iperf-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: suse:caasp:psp:privileged
subjects:
test1:
mgmt_interface: eth0
mgmt_vlan: native
mgmt_address: "1.1.1.1"
test2:
mgmt_interface: eth1
mgmt_vlan: 10
address: "127.0.0.1"