Skip to content

Instantly share code, notes, and snippets.

@bazzilio
Last active August 26, 2019 16:34
Show Gist options
  • Save bazzilio/87fd367309e8452f8f05aa0c8b95060a to your computer and use it in GitHub Desktop.
Save bazzilio/87fd367309e8452f8f05aa0c8b95060a to your computer and use it in GitHub Desktop.
MetalLB
apiVersion: v1
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 93.x.y.68-93.x.y.68
- 93.x.y.140-93.x.y.140
- 93.x.y.142-93.x.y.143
kind: ConfigMap
metadata:
creationTimestamp: "2019-08-26T13:51:50Z"
name: config
namespace: metallb-system
{"caller":"main.go:229","event":"serviceAnnounced","ip":"93.x.y.68","msg":"service has IP, announcing","pool":"default","protocol":"layer2","service":"istio-system/istio-ingressgateway","ts":"2019-08-26T16:13:03.125378113Z"}
kubectl -n romaneev get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
nginx-service LoadBalancer 10.108.132.104 93.x.y.140 8000:32055/TCP 46m
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"name":"nginx-service","namespace":"romaneev"},"spec":{"ports":[{"port":8000,"protocol":"TCP","targetPort":80}],"selector":{"app":"nginx"}}}
metallb.universe.tf/address-pool: default
creationTimestamp: "2019-08-26T15:47:31Z"
name: nginx-service
namespace: romaneev
resourceVersion: "35695250"
selfLink: /api/v1/namespaces/romaneev/services/nginx-service
uid: d0bfd154-c818-11e9-934d-005056a1ae5d
spec:
clusterIP: 10.108.132.104
externalTrafficPolicy: Cluster
ports:
- nodePort: 30872
port: 8000
protocol: TCP
targetPort: 80
selector:
app: nginx
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer:
ingress:
- ip: 93.x.y.140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment