This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
flux
namespace in deploy/
examples
This is so that the configuration is not effected by e.g. a namespace context set in the `kubectl` config of the user, as this caused problems during the creation of the `ClusterRoleBinding` which was set to the `default` namespace, while the resources themselves would be created in the user their configured namespace. It also simplifies the 'Get started with Kustomize' guide, as a user does no longer need to create the namespace as a prerequisite but is still able to overwrite it by adding a `namespace: <targetNamespace>` to their `kustomization.yaml`.
- Loading branch information
Showing
9 changed files
with
59 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ apiVersion: apps/v1 | |
kind: Deployment | ||
metadata: | ||
name: flux | ||
namespace: flux | ||
spec: | ||
replicas: 1 | ||
selector: | ||
|
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,5 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: flux |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ apiVersion: v1 | |
kind: Secret | ||
metadata: | ||
name: flux-git-deploy | ||
namespace: flux | ||
type: Opaque |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
resources: | ||
- flux-ns.yaml | ||
- memcache-svc.yaml | ||
- memcache-dep.yaml | ||
- flux-account.yaml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ apiVersion: v1 | |
kind: Service | ||
metadata: | ||
name: memcached | ||
namespace: flux | ||
spec: | ||
ports: | ||
- name: memcached | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ func main() { | |
params := install.TemplateParameters{ | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "master", | ||
Namespace: "flux", | ||
} | ||
manifests, err := install.FillInTemplates(params) | ||
if err != nil { | ||
|