Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Contrail] How to create an object level FIP Pool in Kubernetes environment

0

0

Article ID: KB35084 KB Last Updated: 10 Oct 2019Version: 1.0
Summary:

This article explains how to allocate the object-specific FIP Pool and its corresponding scope.

For details on the three possible FIP scopes, refer to KB35083 - [Contrail] Understanding Floating IP Pool Scopes in Kubernetes environment.

Solution:

The object-specific FIP pool is the most specific level of FIP pool in Contrail 5 Kubernetes environment. You can specify an FIP Pool to a specific Kubernetes object, such as a 'service' or an 'Ingress'. After the object is created with the pool specified, the object will be assigned an FIP whenever it requires from this pool only. The typical use case of an object-specific FIP pool is when you want to assign a specific IP prefix or an IP prefix from a specific range, instead of the global IP pool.  

Example of how to assign an IP pool to a particular service only:

----
#service-web-lb-pool-public-1.yaml
apiVersion: v1
kind: Service
metadata:
  name: service-web-lb-pool-public-1
  annotations:
    "opencontrail.org/fip-pool": "{'domain': 'default-domain', 'project': 'k8s-ns-user-1', 'network': 'vn-public-1', 'name': 'pool-public-1'}"
spec:
  ports:
  - port: 8888
    targetPort: 80
  selector:
    app: webserver
  type: LoadBalancer

----


In this example, the service 'service-web-lb-pool-public-1' will get an FIP from pool 'pool-public-1', which is created based on VN 'vn-public-1' under the current project 'k8s-ns-user-1'. The corresponding kubernetes NS is 'ns-user-1'. Since the object level FIP pool is assigned for this specific object only, with this method, each new object needs to be assigned an FIP pool explicitly.

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search