mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
k8s-operator/apis/v1alpha1,cmd/k8s-operator/deploy/examples: update DNSConfig description (#11971)
Also removes hardcoded image repo/tag from example DNSConfig resource as the operator now knows how to default those. Updates tailscale/tailscale#11019 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
23e26e589f
commit
53d9cac196
@ -23,6 +23,7 @@ spec:
|
|||||||
name: v1alpha1
|
name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
description: 'DNSConfig can be deployed to cluster to make a subset of Tailscale MagicDNS names resolvable by cluster workloads. Use this if: A) you need to refer to tailnet services, exposed to cluster via Tailscale Kubernetes operator egress proxies by the MagicDNS names of those tailnet services (usually because the services run over HTTPS) B) you have exposed a cluster workload to the tailnet using Tailscale Ingress and you also want to refer to the workload from within the cluster over the Ingress''s MagicDNS name (usually because you have some callback component that needs to use the same URL as that used by a non-cluster client on tailnet). When a DNSConfig is applied to a cluster, Tailscale Kubernetes operator will deploy a nameserver for ts.net DNS names and automatically populate it with records for any Tailscale egress or Ingress proxies deployed to that cluster. Currently you must manually update your cluster DNS configuration to add the IP address of the deployed nameserver as a ts.net stub nameserver. Instructions for how to do it: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configuration-of-stub-domain-and-upstream-nameserver-using-coredns (for CoreDNS), https://cloud.google.com/kubernetes-engine/docs/how-to/kube-dns (for kube-dns). Tailscale Kubernetes operator will write the address of a Service fronting the nameserver to dsnconfig.status.nameserver.ip. DNSConfig is a singleton - you must not create more than one. NB: if you want cluster workloads to be able to refer to Tailscale Ingress using its MagicDNS name, you must also annotate the Ingress resource with tailscale.com/experimental-forward-cluster-traffic-via-ingress annotation to ensure that the proxy created for the Ingress listens on its Pod IP address. NB: Clusters where Pods get assigned IPv6 addresses only are currently not supported.'
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- spec
|
- spec
|
||||||
@ -36,21 +37,27 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
|
description: 'Spec describes the desired DNS configuration. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status'
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- nameserver
|
- nameserver
|
||||||
properties:
|
properties:
|
||||||
nameserver:
|
nameserver:
|
||||||
|
description: Configuration for a nameserver that can resolve ts.net DNS names associated with in-cluster proxies for Tailscale egress Services and Tailscale Ingresses. The operator will always deploy this nameserver when a DNSConfig is applied.
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
image:
|
image:
|
||||||
|
description: Nameserver image.
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
repo:
|
repo:
|
||||||
|
description: Repo defaults to tailscale/k8s-nameserver.
|
||||||
type: string
|
type: string
|
||||||
tag:
|
tag:
|
||||||
|
description: Tag defaults to operator's own tag.
|
||||||
type: string
|
type: string
|
||||||
status:
|
status:
|
||||||
|
description: Status describes the status of the DNSConfig. This is set and managed by the Tailscale operator.
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
conditions:
|
conditions:
|
||||||
@ -86,9 +93,11 @@ spec:
|
|||||||
- type
|
- type
|
||||||
x-kubernetes-list-type: map
|
x-kubernetes-list-type: map
|
||||||
nameserver:
|
nameserver:
|
||||||
|
description: Nameserver describes the status of nameserver cluster resources.
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ip:
|
ip:
|
||||||
|
description: IP is the ClusterIP of the Service fronting the deployed ts.net nameserver. Currently you must manually update your cluster DNS config to add this address as a stub nameserver for ts.net for cluster workloads to be able to resolve MagicDNS names associated with egress or Ingress proxies. The IP address will change if you delete and recreate the DNSConfig.
|
||||||
type: string
|
type: string
|
||||||
served: true
|
served: true
|
||||||
storage: true
|
storage: true
|
||||||
|
@ -3,7 +3,4 @@ kind: DNSConfig
|
|||||||
metadata:
|
metadata:
|
||||||
name: ts-dns
|
name: ts-dns
|
||||||
spec:
|
spec:
|
||||||
nameserver:
|
nameserver: {}
|
||||||
image:
|
|
||||||
repo: tailscale/k8s-nameserver
|
|
||||||
tag: unstable-v1.65
|
|
||||||
|
@ -190,6 +190,7 @@ spec:
|
|||||||
name: v1alpha1
|
name: v1alpha1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
description: 'DNSConfig can be deployed to cluster to make a subset of Tailscale MagicDNS names resolvable by cluster workloads. Use this if: A) you need to refer to tailnet services, exposed to cluster via Tailscale Kubernetes operator egress proxies by the MagicDNS names of those tailnet services (usually because the services run over HTTPS) B) you have exposed a cluster workload to the tailnet using Tailscale Ingress and you also want to refer to the workload from within the cluster over the Ingress''s MagicDNS name (usually because you have some callback component that needs to use the same URL as that used by a non-cluster client on tailnet). When a DNSConfig is applied to a cluster, Tailscale Kubernetes operator will deploy a nameserver for ts.net DNS names and automatically populate it with records for any Tailscale egress or Ingress proxies deployed to that cluster. Currently you must manually update your cluster DNS configuration to add the IP address of the deployed nameserver as a ts.net stub nameserver. Instructions for how to do it: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configuration-of-stub-domain-and-upstream-nameserver-using-coredns (for CoreDNS), https://cloud.google.com/kubernetes-engine/docs/how-to/kube-dns (for kube-dns). Tailscale Kubernetes operator will write the address of a Service fronting the nameserver to dsnconfig.status.nameserver.ip. DNSConfig is a singleton - you must not create more than one. NB: if you want cluster workloads to be able to refer to Tailscale Ingress using its MagicDNS name, you must also annotate the Ingress resource with tailscale.com/experimental-forward-cluster-traffic-via-ingress annotation to ensure that the proxy created for the Ingress listens on its Pod IP address. NB: Clusters where Pods get assigned IPv6 addresses only are currently not supported.'
|
||||||
properties:
|
properties:
|
||||||
apiVersion:
|
apiVersion:
|
||||||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
|
||||||
@ -200,14 +201,19 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
spec:
|
spec:
|
||||||
|
description: 'Spec describes the desired DNS configuration. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status'
|
||||||
properties:
|
properties:
|
||||||
nameserver:
|
nameserver:
|
||||||
|
description: Configuration for a nameserver that can resolve ts.net DNS names associated with in-cluster proxies for Tailscale egress Services and Tailscale Ingresses. The operator will always deploy this nameserver when a DNSConfig is applied.
|
||||||
properties:
|
properties:
|
||||||
image:
|
image:
|
||||||
|
description: Nameserver image.
|
||||||
properties:
|
properties:
|
||||||
repo:
|
repo:
|
||||||
|
description: Repo defaults to tailscale/k8s-nameserver.
|
||||||
type: string
|
type: string
|
||||||
tag:
|
tag:
|
||||||
|
description: Tag defaults to operator's own tag.
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
@ -215,6 +221,7 @@ spec:
|
|||||||
- nameserver
|
- nameserver
|
||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
|
description: Status describes the status of the DNSConfig. This is set and managed by the Tailscale operator.
|
||||||
properties:
|
properties:
|
||||||
conditions:
|
conditions:
|
||||||
items:
|
items:
|
||||||
@ -249,8 +256,10 @@ spec:
|
|||||||
- type
|
- type
|
||||||
x-kubernetes-list-type: map
|
x-kubernetes-list-type: map
|
||||||
nameserver:
|
nameserver:
|
||||||
|
description: Nameserver describes the status of nameserver cluster resources.
|
||||||
properties:
|
properties:
|
||||||
ip:
|
ip:
|
||||||
|
description: IP is the ClusterIP of the Service fronting the deployed ts.net nameserver. Currently you must manually update your cluster DNS config to add this address as a stub nameserver for ts.net for cluster workloads to be able to resolve MagicDNS names associated with egress or Ingress proxies. The IP address will change if you delete and recreate the DNSConfig.
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
@ -283,7 +283,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DNSConfig can be deployed to cluster to make a subset of Tailscale MagicDNS names resolvable by cluster workloads. Use this if: A) you need to refer to tailnet services, exposed to cluster via Tailscale Kubernetes operator egress proxies by the MagicDNS names of those tailnet services (usually because the services run over HTTPS) B) you have exposed a cluster workload to the tailnet using Tailscale Ingress and you also want to refer to the workload from within the cluster over the Ingress's MagicDNS name (usually because you have some callback component that needs to use the same URL as that used by a non-cluster client on tailnet). When a DNSConfig is applied to a cluster, Tailscale Kubernetes operator will deploy a nameserver for ts.net DNS names and automatically populate it with records for any Tailscale egress or Ingress proxies deployed to that cluster. Currently you must manually update your cluster DNS configuration to add the IP address of the deployed nameserver as a ts.net stub nameserver. Instructions for how to do it: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configuration-of-stub-domain-and-upstream-nameserver-using-coredns (for CoreDNS), https://cloud.google.com/kubernetes-engine/docs/how-to/kube-dns (for kube-dns). Tailscale Kubernetes operator will write the address of a Service fronting the nameserver to dsnconfig.status.nameserver.ip. DNSConfig is a singleton - you must not create more than one. NB: if you want cluster workloads to be able to refer to Tailscale Ingress using its MagicDNS name, you must also annotate the Ingress resource with tailscale.com/experimental-forward-cluster-traffic-via-ingress annotation to ensure that the proxy created for the Ingress listens on its Pod IP address. NB: Clusters where Pods get assigned IPv6 addresses only are currently not supported.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -315,14 +315,14 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b><a href="#dnsconfigspec">spec</a></b></td>
|
<td><b><a href="#dnsconfigspec">spec</a></b></td>
|
||||||
<td>object</td>
|
<td>object</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Spec describes the desired DNS configuration. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>true</td>
|
<td>true</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><b><a href="#dnsconfigstatus">status</a></b></td>
|
<td><b><a href="#dnsconfigstatus">status</a></b></td>
|
||||||
<td>object</td>
|
<td>object</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Status describes the status of the DNSConfig. This is set and managed by the Tailscale operator.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
@ -334,7 +334,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Spec describes the desired DNS configuration. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -349,7 +349,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b><a href="#dnsconfigspecnameserver">nameserver</a></b></td>
|
<td><b><a href="#dnsconfigspecnameserver">nameserver</a></b></td>
|
||||||
<td>object</td>
|
<td>object</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Configuration for a nameserver that can resolve ts.net DNS names associated with in-cluster proxies for Tailscale egress Services and Tailscale Ingresses. The operator will always deploy this nameserver when a DNSConfig is applied.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>true</td>
|
<td>true</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
@ -361,7 +361,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Configuration for a nameserver that can resolve ts.net DNS names associated with in-cluster proxies for Tailscale egress Services and Tailscale Ingresses. The operator will always deploy this nameserver when a DNSConfig is applied.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -376,7 +376,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b><a href="#dnsconfigspecnameserverimage">image</a></b></td>
|
<td><b><a href="#dnsconfigspecnameserverimage">image</a></b></td>
|
||||||
<td>object</td>
|
<td>object</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Nameserver image.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
@ -388,7 +388,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Nameserver image.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -403,14 +403,14 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b>repo</b></td>
|
<td><b>repo</b></td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Repo defaults to tailscale/k8s-nameserver.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><b>tag</b></td>
|
<td><b>tag</b></td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Tag defaults to operator's own tag.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
@ -422,7 +422,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Status describes the status of the DNSConfig. This is set and managed by the Tailscale operator.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -444,7 +444,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b><a href="#dnsconfigstatusnameserver">nameserver</a></b></td>
|
<td><b><a href="#dnsconfigstatusnameserver">nameserver</a></b></td>
|
||||||
<td>object</td>
|
<td>object</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
Nameserver describes the status of nameserver cluster resources.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
@ -522,7 +522,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Nameserver describes the status of nameserver cluster resources.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -537,7 +537,7 @@ ConnectorCondition contains condition information for a Connector.
|
|||||||
<td><b>ip</b></td>
|
<td><b>ip</b></td>
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>
|
<td>
|
||||||
<br/>
|
IP is the ClusterIP of the Service fronting the deployed ts.net nameserver. Currently you must manually update your cluster DNS config to add this address as a stub nameserver for ts.net for cluster workloads to be able to resolve MagicDNS names associated with egress or Ingress proxies. The IP address will change if you delete and recreate the DNSConfig.<br/>
|
||||||
</td>
|
</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr></tbody>
|
</tr></tbody>
|
||||||
|
@ -19,12 +19,43 @@
|
|||||||
// +kubebuilder:resource:scope=Cluster,shortName=dc
|
// +kubebuilder:resource:scope=Cluster,shortName=dc
|
||||||
// +kubebuilder:printcolumn:name="NameserverIP",type="string",JSONPath=`.status.nameserver.ip`,description="Service IP address of the nameserver"
|
// +kubebuilder:printcolumn:name="NameserverIP",type="string",JSONPath=`.status.nameserver.ip`,description="Service IP address of the nameserver"
|
||||||
|
|
||||||
|
// DNSConfig can be deployed to cluster to make a subset of Tailscale MagicDNS
|
||||||
|
// names resolvable by cluster workloads. Use this if: A) you need to refer to
|
||||||
|
// tailnet services, exposed to cluster via Tailscale Kubernetes operator egress
|
||||||
|
// proxies by the MagicDNS names of those tailnet services (usually because the
|
||||||
|
// services run over HTTPS)
|
||||||
|
// B) you have exposed a cluster workload to the tailnet using Tailscale Ingress
|
||||||
|
// and you also want to refer to the workload from within the cluster over the
|
||||||
|
// Ingress's MagicDNS name (usually because you have some callback component
|
||||||
|
// that needs to use the same URL as that used by a non-cluster client on
|
||||||
|
// tailnet).
|
||||||
|
// When a DNSConfig is applied to a cluster, Tailscale Kubernetes operator will
|
||||||
|
// deploy a nameserver for ts.net DNS names and automatically populate it with records
|
||||||
|
// for any Tailscale egress or Ingress proxies deployed to that cluster.
|
||||||
|
// Currently you must manually update your cluster DNS configuration to add the
|
||||||
|
// IP address of the deployed nameserver as a ts.net stub nameserver.
|
||||||
|
// Instructions for how to do it:
|
||||||
|
// https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configuration-of-stub-domain-and-upstream-nameserver-using-coredns (for CoreDNS),
|
||||||
|
// https://cloud.google.com/kubernetes-engine/docs/how-to/kube-dns (for kube-dns).
|
||||||
|
// Tailscale Kubernetes operator will write the address of a Service fronting
|
||||||
|
// the nameserver to dsnconfig.status.nameserver.ip.
|
||||||
|
// DNSConfig is a singleton - you must not create more than one.
|
||||||
|
// NB: if you want cluster workloads to be able to refer to Tailscale Ingress
|
||||||
|
// using its MagicDNS name, you must also annotate the Ingress resource with
|
||||||
|
// tailscale.com/experimental-forward-cluster-traffic-via-ingress annotation to
|
||||||
|
// ensure that the proxy created for the Ingress listens on its Pod IP address.
|
||||||
|
// NB: Clusters where Pods get assigned IPv6 addresses only are currently not supported.
|
||||||
type DNSConfig struct {
|
type DNSConfig struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
|
|
||||||
|
// Spec describes the desired DNS configuration.
|
||||||
|
// More info:
|
||||||
|
// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
||||||
Spec DNSConfigSpec `json:"spec"`
|
Spec DNSConfigSpec `json:"spec"`
|
||||||
|
|
||||||
|
// Status describes the status of the DNSConfig. This is set
|
||||||
|
// and managed by the Tailscale operator.
|
||||||
// +optional
|
// +optional
|
||||||
Status DNSConfigStatus `json:"status"`
|
Status DNSConfigStatus `json:"status"`
|
||||||
}
|
}
|
||||||
@ -39,17 +70,24 @@ type DNSConfigList struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DNSConfigSpec struct {
|
type DNSConfigSpec struct {
|
||||||
|
// Configuration for a nameserver that can resolve ts.net DNS names
|
||||||
|
// associated with in-cluster proxies for Tailscale egress Services and
|
||||||
|
// Tailscale Ingresses. The operator will always deploy this nameserver
|
||||||
|
// when a DNSConfig is applied.
|
||||||
Nameserver *Nameserver `json:"nameserver"`
|
Nameserver *Nameserver `json:"nameserver"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Nameserver struct {
|
type Nameserver struct {
|
||||||
|
// Nameserver image.
|
||||||
// +optional
|
// +optional
|
||||||
Image *Image `json:"image,omitempty"`
|
Image *Image `json:"image,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Image struct {
|
type Image struct {
|
||||||
|
// Repo defaults to tailscale/k8s-nameserver.
|
||||||
// +optional
|
// +optional
|
||||||
Repo string `json:"repo,omitempty"`
|
Repo string `json:"repo,omitempty"`
|
||||||
|
// Tag defaults to operator's own tag.
|
||||||
// +optional
|
// +optional
|
||||||
Tag string `json:"tag,omitempty"`
|
Tag string `json:"tag,omitempty"`
|
||||||
}
|
}
|
||||||
@ -59,13 +97,22 @@ type DNSConfigStatus struct {
|
|||||||
// +listMapKey=type
|
// +listMapKey=type
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []ConnectorCondition `json:"conditions"`
|
Conditions []ConnectorCondition `json:"conditions"`
|
||||||
|
// Nameserver describes the status of nameserver cluster resources.
|
||||||
// +optional
|
// +optional
|
||||||
Nameserver *NameserverStatus `json:"nameserver"`
|
Nameserver *NameserverStatus `json:"nameserver"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type NameserverStatus struct {
|
type NameserverStatus struct {
|
||||||
|
// IP is the ClusterIP of the Service fronting the deployed ts.net nameserver.
|
||||||
|
// Currently you must manually update your cluster DNS config to add
|
||||||
|
// this address as a stub nameserver for ts.net for cluster workloads to be
|
||||||
|
// able to resolve MagicDNS names associated with egress or Ingress
|
||||||
|
// proxies.
|
||||||
|
// The IP address will change if you delete and recreate the DNSConfig.
|
||||||
// +optional
|
// +optional
|
||||||
IP string `json:"ip"`
|
IP string `json:"ip"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NameserverReady is set to True if the nameserver has been successfully
|
||||||
|
// deployed to cluster.
|
||||||
const NameserverReady ConnectorConditionType = `NameserverReady`
|
const NameserverReady ConnectorConditionType = `NameserverReady`
|
||||||
|
Loading…
Reference in New Issue
Block a user