Skip to content

Kustomize all the things #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: v1
metadata:
name: kube-lego
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this now going to be in the kube-system namespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Negative, but the kube-lego namespace declaration moved to the prod overlay

namespace: kube-lego
data:
# modify this to specify your address
lego.email: "tech@operationcode.org"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-lego
namespace: kube-lego
spec:
replicas: 1
template:
Expand Down
7 changes: 7 additions & 0 deletions kubernetes/kube-lego/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- configmap.yaml
- deployment.yaml
- rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ roleRef:
subjects:
- kind: ServiceAccount
name: default
namespace: lego
7 changes: 7 additions & 0 deletions kubernetes/kube-lego/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: kube-lego

bases:
- ../../base
8 changes: 0 additions & 8 deletions kubernetes/operationcode_backend/database-service-prod.yml

This file was deleted.

8 changes: 0 additions & 8 deletions kubernetes/operationcode_backend/database-service-stage.yml

This file was deleted.

185 changes: 0 additions & 185 deletions kubernetes/operationcode_backend/deployment.yml

This file was deleted.

12 changes: 0 additions & 12 deletions kubernetes/operationcode_backend/redis-service-stage.yml

This file was deleted.

13 changes: 0 additions & 13 deletions kubernetes/operationcode_backend/service.yml

This file was deleted.

21 changes: 0 additions & 21 deletions kubernetes/operationcode_backend/staging/ingress.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ spec:
secretKeyRef:
name: town-crier-secrets
key: slack_token
volumeMounts:
- name: town-crier-secrets
mountPath: /run/secrets
volumes:
- name: town-crier-secrets
secret:
Expand Down
5 changes: 5 additions & 0 deletions kubernetes/town_crier/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- deployment.yaml
7 changes: 7 additions & 0 deletions kubernetes/town_crier/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: operationcode

bases:
- ../../base