Skip to content

Commit 947f302

Browse files
author
angelnu
committed
move namespaces
1 parent 119f1fb commit 947f302

26 files changed

+16
-20
lines changed

ansible/flux_install.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
- name: "Deploy flux to cluster if crd fluxcd.io missing"
6363
shell: >
6464
{{ KUBECTL_BIN }} apply -k ../{{ FLUX_GIT_PATH }}
65+
environment:
66+
KUBECONFIG: "{{ KUBECTL_CONFIG }}"
6567
delegate_to: localhost
6668
register: result
6769
changed_when:

ansible/group_vars/all.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ K8S_RESET: false
4949

5050
# microk8s
5151
KUBECTL_BIN: "{{ '/snap/bin/microk8s kubectl' if K8S_TYPE=='k8s' else 'kubectl' }}"
52+
KUBECTL_CONFIG: "/root/.kube/config-{{ 'production' if production else 'staging' }}"
5253
DOCKER_USER: !vault |
5354
$ANSIBLE_VAULT;1.1;AES256
5455
39353438346635386437643834303766353339336230623766666333626562323231613538656162

ansible/k3s_install.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@
158158
run_once: true
159159
ansible.builtin.fetch:
160160
src: /etc/rancher/k3s/k3s.yaml
161-
dest: /root/.kube/config
161+
dest: "{{ KUBECTL_CONFIG }}"
162162
flat: yes
163163

164164
- name: Ansible replace string example
165165
#TBD: this always result in changed
166166
replace:
167-
path: /root/.kube/config
167+
path: "{{ KUBECTL_CONFIG }}"
168168
regexp: '127.0.0.1'
169169
replace: "{{ inventory_hostname }}"
170170
delegate_to: localhost

apps/podinfo/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: podinfo
44
resources:
5-
- namespace.yaml
65
- release.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.

base/namespaces/kustomization.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3-
resources: []
3+
resources:
4+
- ceph.yaml
5+
- ceph-rbd.yaml
6+
- cert-manager.yaml
7+
- monitoring.yaml
8+
- nginx.yaml
9+
- podinfo.yaml
10+
- postgres.yaml
11+
- redis.yaml
12+
- vpn-gateway.yaml
13+
- vpn.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

core/ceph-rbd/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: ceph-rbd
44
resources:
5-
- namespace.yaml
65
- rbd.yaml
76
- secret.yaml

core/ceph/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: ceph
44
resources:
5-
- namespace.yaml
65
- cephfs.yaml
76
- secret.yaml

core/monitoring/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: monitoring
44
resources:
5-
- namespace.yaml
65
- botkube

core/nginx/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: nginx
44
resources:
5-
- namespace.yaml
65
- release.yaml

core/redis/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: redis
44
resources:
5-
- namespace.yaml
65
- release.yaml
76
configMapGenerator:
87
- name: redis-values

core/vpn/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: vpn
44
resources:
5-
- namespace.yaml
65
- networkPolicy.yaml
76
- terminal.yaml

operators/cert-manager/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ namespace: cert-manager
44
#crds:
55
# - https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.crds.yaml
66
resources:
7-
- namespace.yaml
87
- cert-manager.yaml
98

operators/postgres/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
namespace: postgres
44
resources:
5-
- namespace.yaml
65
- operator.yaml

settings/production/secrets/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ kind: Kustomization
33
resources:
44
# - drone.yaml
55
- git-ssh-key.yaml
6-
- vpn-namespace.yaml
76
- vpn.yaml

settings/staging/secrets/kustomization.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- git-ssh-key.yaml
5-
- vpn-namespace.yaml
65
- vpn.yaml

settings/staging/secrets/vpn-namespace.yaml

-6
This file was deleted.

0 commit comments

Comments
 (0)