Skip to content

Commit

Permalink
Switch to a jelly namespace instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
spyker77 committed May 22, 2023
1 parent fde6455 commit cd3f3c8
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions deploy/elasticsearch/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: elasticsearch
namespace: jelly
spec:
selector:
app: elasticsearch
Expand Down
1 change: 1 addition & 0 deletions deploy/elasticsearch/statefulsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: elasticsearch
namespace: jelly
spec:
serviceName: elasticsearch
replicas: 3
Expand Down
1 change: 1 addition & 0 deletions deploy/kibana/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: jelly
spec:
replicas: 1
selector:
Expand Down
1 change: 1 addition & 0 deletions deploy/kibana/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: jelly
spec:
selector:
app: kibana
Expand Down
1 change: 1 addition & 0 deletions deploy/mongo/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: mongo
namespace: jelly
spec:
selector:
app: mongo
Expand Down
1 change: 1 addition & 0 deletions deploy/mongo/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongo
namespace: jelly
spec:
serviceName: mongo
replicas: 1
Expand Down
14 changes: 9 additions & 5 deletions deploy/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,42 @@ apiVersion: v1
kind: Secret
metadata:
name: web
namespace: jelly
type: Opaque
data:
MONGODB_DATABASE: amVsbHk=
MONGODB_URL: bW9uZ29kYjovL3Jvb3Q6c2VjcmV0QG1vbmdvOjI3MDE3
ELASTICSEARCH_URL: aHR0cDovL2VsYXN0aWNzZWFyY2g6OTIwMA==
MONGODB_URL: bW9uZ29kYjovL3Jvb3Q6c2VjcmV0QG1vbmdvLmplbGx5LnN2Yy5jbHVzdGVyLmxvY2FsOjI3MDE3
ELASTICSEARCH_URL: aHR0cDovL2VsYXN0aWNzZWFyY2guamVsbHkuc3ZjLmNsdXN0ZXIubG9jYWw6OTIwMA==
---
apiVersion: v1
kind: Secret
metadata:
name: elasticsearch
namespace: jelly
type: Opaque
data:
xpack.security.enabled: ZmFsc2U=
xpack.security.transport.ssl.enabled: ZmFsc2U=
xpack.security.http.ssl.enabled: ZmFsc2U=
discovery.seed_hosts: ZWxhc3RpY3NlYXJjaC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2Fs
discovery.seed_hosts: ZWxhc3RpY3NlYXJjaC5qZWxseS5zdmMuY2x1c3Rlci5sb2NhbA==
cluster.initial_master_nodes: ZWxhc3RpY3NlYXJjaC0wLGVsYXN0aWNzZWFyY2gtMSxlbGFzdGljc2VhcmNoLTI=
ES_JAVA_OPTS: LVhtczUxMm0gLVhteDUxMm0=
---
apiVersion: v1
kind: Secret
metadata:
name: kibana
namespace: jelly
type: Opaque
data:
SERVER_NAME: a2liYW5hLmxvY2Fs
ELASTICSEARCH_HOSTS: aHR0cDovL2VsYXN0aWNzZWFyY2g6OTIwMA==
SERVER_NAME: a2liYW5hLmplbGx5LnN2Yy5jbHVzdGVyLmxvY2Fs
ELASTICSEARCH_HOSTS: aHR0cDovL2VsYXN0aWNzZWFyY2guamVsbHkuc3ZjLmNsdXN0ZXIubG9jYWw6OTIwMA==
---
apiVersion: v1
kind: Secret
metadata:
name: mongo
namespace: jelly
type: Opaque
data:
MONGO_INITDB_ROOT_USERNAME: cm9vdA==
Expand Down
1 change: 1 addition & 0 deletions deploy/web/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: jelly
spec:
replicas: 1
selector:
Expand Down
2 changes: 1 addition & 1 deletion deploy/web/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: web
namespace: default
namespace: jelly
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
1 change: 1 addition & 0 deletions deploy/web/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: jelly
annotations:
kubernetes.io/ingress.class: nginx
spec:
Expand Down
1 change: 1 addition & 0 deletions deploy/web/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: web
namespace: jelly
spec:
selector:
app: web
Expand Down

0 comments on commit cd3f3c8

Please sign in to comment.