Skip to content

Instantly share code, notes, and snippets.

@bubeamos
Last active October 14, 2018 13:59
Show Gist options
  • Select an option

  • Save bubeamos/ddf28c77fc0f0b11fdeb60d0678f486f to your computer and use it in GitHub Desktop.

Select an option

Save bubeamos/ddf28c77fc0f0b11fdeb60d0678f486f to your computer and use it in GitHub Desktop.

Revisions

  1. bubeamos revised this gist Oct 14, 2018. 1 changed file with 5 additions and 11 deletions.
    16 changes: 5 additions & 11 deletions ingress.yaml
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,12 @@
    kind: Service
    apiVersion: v1
    metadata:
    name: my-lb-service
    name: my-mediaiq-service
    spec:
    selector:
    app: source-ip
    ports:
    - protocol: TCP
    port: 80
    - port: 8765
    targetPort: 9376
    clusterIP: 10.100.0.70
    loadBalancerIP: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    selector:
    app: source-ip
    type: LoadBalancer
    status:
    loadBalancer:
    ingress:
    - ip: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    externalTrafficPolicy: Local
  2. bubeamos revised this gist Oct 14, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ingress.yaml
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ spec:
    - protocol: TCP
    port: 80
    targetPort: 9376
    clusterIP: 10.100.0.1
    clusterIP: 10.100.0.70
    loadBalancerIP: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    type: LoadBalancer
    status:
  3. bubeamos revised this gist Oct 14, 2018. 1 changed file with 16 additions and 15 deletions.
    31 changes: 16 additions & 15 deletions ingress.yaml
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,18 @@
    apiVersion: extensions/v1beta1
    kind: Ingress
    kind: Service
    apiVersion: v1
    metadata:
    name: my-ingress
    annotations:
    kubernetes.io/ingress.class: "nginx"
    name: my-lb-service
    spec:
    backend:
    serviceName: default-http-backend
    servicePort: 80
    rules:
    - host: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    http:
    paths:
    - backend:
    serviceName: source-ip
    servicePort: 80
    selector:
    app: source-ip
    ports:
    - protocol: TCP
    port: 80
    targetPort: 9376
    clusterIP: 10.100.0.1
    loadBalancerIP: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    type: LoadBalancer
    status:
    loadBalancer:
    ingress:
    - ip: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
  4. bubeamos created this gist Oct 14, 2018.
    17 changes: 17 additions & 0 deletions ingress.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    apiVersion: extensions/v1beta1
    kind: Ingress
    metadata:
    name: my-ingress
    annotations:
    kubernetes.io/ingress.class: "nginx"
    spec:
    backend:
    serviceName: default-http-backend
    servicePort: 80
    rules:
    - host: a28a70911cfa611e89e65020a2cc9e06-1891411889.us-west-2.elb.amazonaws.com
    http:
    paths:
    - backend:
    serviceName: source-ip
    servicePort: 80