fix: Add EPMD port to kube config
This commit is contained in:
parent
3990818879
commit
a5c9a65037
4 changed files with 54 additions and 2 deletions
|
@ -53,7 +53,7 @@ build_image_for_commit:
|
|||
# If tests pass, tag the commit and update package versions
|
||||
deploy_to_tags:
|
||||
stage: deploy_tags
|
||||
needs: ['test']
|
||||
needs: ['test', 'build_image_for_commit']
|
||||
image: "node:15.0"
|
||||
only:
|
||||
- master
|
||||
|
|
|
@ -9,6 +9,8 @@ RUN mix local.hex --force \
|
|||
&& mix local.rebar --force
|
||||
|
||||
EXPOSE 4000
|
||||
# Default EPMD port
|
||||
EXPOSE 4369
|
||||
|
||||
ARG MIX_ENV=prod
|
||||
RUN echo ${MIX_ENV}
|
||||
|
|
|
@ -20,9 +20,10 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: app
|
||||
image: registry.gitlab.com/mythic-insight/legendary-doc-site:2.8.8
|
||||
image: registry.gitlab.com/mythic-insight/legendary-doc-site:2.8.9
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
- containerPort: 4369
|
||||
env:
|
||||
- name: HOSTNAME
|
||||
value: legendaryframework.org
|
||||
|
@ -130,3 +131,27 @@ spec:
|
|||
- legendaryframework.org
|
||||
- legendaryframework.com
|
||||
secretName: legendary-doc-site-cert
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: legendary-doc-site
|
||||
name: pod-watcher
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["list"]
|
||||
---
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: legendary-doc-site
|
||||
name: pod-watcher-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
namespace: legendary-doc-site
|
||||
name: default
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: pod-watcher
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
|
|
|
@ -23,6 +23,7 @@ spec:
|
|||
image: registry.gitlab.com/mythic-insight/legendary-doc-site:{{=it.version}}
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
- containerPort: 4369
|
||||
env:
|
||||
- name: HOSTNAME
|
||||
value: legendaryframework.org
|
||||
|
@ -130,3 +131,27 @@ spec:
|
|||
- legendaryframework.org
|
||||
- legendaryframework.com
|
||||
secretName: legendary-doc-site-cert
|
||||
---
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: legendary-doc-site
|
||||
name: pod-watcher
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods"]
|
||||
verbs: ["list"]
|
||||
---
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: legendary-doc-site
|
||||
name: pod-watcher-binding
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
namespace: legendary-doc-site
|
||||
name: default
|
||||
roleRef:
|
||||
kind: Role
|
||||
name: pod-watcher
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
|
|
Loading…
Reference in a new issue