github.com/looshlee/cilium@v1.6.12/pkg/annotation/k8s.go (about) 1 // Copyright 2018-2019 Authors of Cilium 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package annotation 16 17 const ( 18 // Prefix is the common prefix for all annotations 19 Prefix = "io.cilium" 20 21 // Name is an optional annotation to the NetworkPolicy 22 // resource which specifies the name of the policy node to which all 23 // rules should be applied to. 24 Name = Prefix + ".name" 25 26 // V4CIDRName is the annotation name used to store the IPv4 27 // pod CIDR in the node's annotations. 28 V4CIDRName = Prefix + ".network.ipv4-pod-cidr" 29 // V6CIDRName is the annotation name used to store the IPv6 30 // pod CIDR in the node's annotations. 31 V6CIDRName = Prefix + ".network.ipv6-pod-cidr" 32 33 // V4HealthName is the annotation name used to store the IPv4 34 // address of the cilium-health endpoint in the node's annotations. 35 V4HealthName = Prefix + ".network.ipv4-health-ip" 36 // V6HealthName is the annotation name used to store the IPv6 37 // address of the cilium-health endpoint in the node's annotations. 38 V6HealthName = Prefix + ".network.ipv6-health-ip" 39 40 // CiliumHostIP is the annotation name used to store the IPv4 address 41 // of the cilium host interface in the node's annotations. 42 CiliumHostIP = Prefix + ".network.ipv4-cilium-host" 43 44 // CiliumHostIPv6 is the annotation name used to store the IPv6 address 45 // of the cilium host interface in the node's annotation. 46 CiliumHostIPv6 = Prefix + ".network.ipv6-cilium-host" 47 48 // GlobalService if set to true, marks a service to become a global 49 // service 50 GlobalService = Prefix + "/global-service" 51 52 // SharedService if set to false, prevents a service from being shared, 53 // the default is true if GlobalService is set, otherwise false, 54 // Setting the annotation SharedService to false while setting 55 // GlobalService to true allows to expose remote endpoints without 56 // sharing local endpoints. 57 SharedService = Prefix + "/shared-service" 58 )