-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shorter DNS name for pod-to-pod networking (#764)
<!--Thanks for your contribution. See [CONTRIBUTING](CONTRIBUTING.md) for Pulumi's contribution guidelines. Help us merge your changes more quickly by adding more details such as labels, milestones, and reviewers.--> ### Proposed changes <!--Give us a brief description of what you've done and what it solves. --> Eliminates the use of the hardcoded DNS suffix "svc.cluster.local", e.g. to support ["VPC scope DNS"](https://cloud.google.com/kubernetes-engine/docs/how-to/cloud-dns#vpc_scope_dns). ### Workspace RPC For workspace RPC connectivity, the operator now uses the "namespace-scoped" short name of the workspace pod, e.g. `guestbook-workspace.default` rather than `guestbook-workspace.default.svc.cluster.local.`. ``` ❯ kubectl get workspace NAME IMAGE READY ADDRESS kubernetes-py-guestbook pulumi/pulumi:3.134.1-nonroot True kubernetes-py-guestbook-workspace.default:50051 ``` This approach is an improvement but isn't ideal for cross-cluster communication. A possible future enhancement would be to fully resolve the address to be persisted in the status block (e.g. to `guestbook-workspace.default.svc.cluster1.`). See [DNS for Services and Pods](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#namespaces-of-services) for more information, which says: > In summary, a Pod in the `test` namespace can successfully resolve either `data.prod` or `data.prod.svc.cluster.local`. ### Program Artifact The program artifact is fetched by workspace pods from the controller itself, based on the configured advertised address. This PR shortens the advertised address used by the default installation manifest, and updates the Helm chart to support a configurable override. ``` ❯ kubectl get program NAME AGE URL random-yaml 28m http://pulumi-kubernetes-operator.pulumi-kubernetes-operator:80/programs/default/random-yaml ``` ### Related issues (optional) <!--Refer to related PRs or issues: #1234, or 'Fixes #1234' or 'Closes #1234'. Or link to full URLs to issues or pull requests in other GitHub repositories. --> Closes #759
- Loading branch information
1 parent
92416e3
commit 253a6e5
Showing
13 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: random-yaml-program | ||
namespace: default | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: random-yaml-program:system:auth-delegator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:auth-delegator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: random-yaml-program | ||
namespace: default | ||
--- | ||
apiVersion: pulumi.com/v1 | ||
kind: Stack | ||
metadata: | ||
name: random-yaml-program | ||
namespace: default | ||
spec: | ||
serviceAccountName: random-yaml-program | ||
programRef: | ||
name: random-yaml | ||
stack: random-yaml-program | ||
refresh: true | ||
destroyOnFinalize: true | ||
envRefs: | ||
PULUMI_ACCESS_TOKEN: | ||
type: Secret | ||
secret: | ||
name: pulumi-api-secret | ||
key: accessToken | ||
workspaceTemplate: | ||
spec: | ||
image: pulumi/pulumi:3.134.1-nonroot | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters