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
|
# If tests pass, tag the commit and update package versions
|
||||||
deploy_to_tags:
|
deploy_to_tags:
|
||||||
stage: deploy_tags
|
stage: deploy_tags
|
||||||
needs: ['test']
|
needs: ['test', 'build_image_for_commit']
|
||||||
image: "node:15.0"
|
image: "node:15.0"
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
|
@ -9,6 +9,8 @@ RUN mix local.hex --force \
|
||||||
&& mix local.rebar --force
|
&& mix local.rebar --force
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
# Default EPMD port
|
||||||
|
EXPOSE 4369
|
||||||
|
|
||||||
ARG MIX_ENV=prod
|
ARG MIX_ENV=prod
|
||||||
RUN echo ${MIX_ENV}
|
RUN echo ${MIX_ENV}
|
||||||
|
|
|
@ -20,9 +20,10 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: app
|
- 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:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
|
- containerPort: 4369
|
||||||
env:
|
env:
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
value: legendaryframework.org
|
value: legendaryframework.org
|
||||||
|
@ -130,3 +131,27 @@ spec:
|
||||||
- legendaryframework.org
|
- legendaryframework.org
|
||||||
- legendaryframework.com
|
- legendaryframework.com
|
||||||
secretName: legendary-doc-site-cert
|
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}}
|
image: registry.gitlab.com/mythic-insight/legendary-doc-site:{{=it.version}}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
|
- containerPort: 4369
|
||||||
env:
|
env:
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
value: legendaryframework.org
|
value: legendaryframework.org
|
||||||
|
@ -130,3 +131,27 @@ spec:
|
||||||
- legendaryframework.org
|
- legendaryframework.org
|
||||||
- legendaryframework.com
|
- legendaryframework.com
|
||||||
secretName: legendary-doc-site-cert
|
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