-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from epics-containers/edge-containers
Restructure for new edge containers cli
- Loading branch information
Showing
18 changed files
with
233 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
name: domain-opis | ||
name: epics-opis | ||
description: | | ||
A service for sharing bob files to phoebus for all iocs on the beamline. | ||
type: application | ||
|
||
version: 1.0.2 | ||
version: 2.0.0+b3 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# a config map to contain nginx config - ingests the files in config folder | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-nginx-config | ||
labels: | ||
app: {{ .Release.Name }} | ||
location: {{ .Values.location }} | ||
ioc_group: {{ .Values.ioc_group }} | ||
data: | ||
{{ (.Files.Glob "config/*").AsConfig | indent 2 }} | ||
version.txt: | | ||
IOC {{ .Release.Name }} version {{ .Chart.AppVersion }} | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: {{ .Release.Name }} | ||
labels: | ||
app: {{ .Release.Name }} | ||
location: {{ .Values.location }} | ||
ioc_group: {{ .Values.ioc_group }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
location: {{ .Values.location }} | ||
ioc_group: {{ .Values.ioc_group }} | ||
spec: | ||
volumes: | ||
- name: html-volume | ||
persistentVolumeClaim: | ||
claimName: {{ .Values.ioc_group }}-opi-claim | ||
- name: config-volume | ||
configMap: | ||
name: {{ .Release.Name }}-nginx-config | ||
containers: | ||
- name: server | ||
image: {{ .Values.image }} | ||
resources: | ||
requests: | ||
memory: 100Mi | ||
cpu: 200m | ||
limits: | ||
memory: 500Mi | ||
cpu: 600m | ||
ports: | ||
- containerPort: 90 | ||
protocol: TCP | ||
volumeMounts: | ||
# - mountPath: /opis | ||
- mountPath: /usr/share/nginx/html | ||
name: html-volume | ||
# mount a config file over the default nginx config | ||
- mountPath: /etc/nginx/nginx.conf | ||
name: config-volume | ||
subPath: nginx.conf | ||
{{- if .Values.useAffinity }} | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
{{ if .Values.beamline -}} | ||
- matchExpressions: | ||
- key: beamline | ||
operator: In | ||
values: | ||
- {{ .Values.beamline }} | ||
{{- else -}} | ||
- matchExpressions: | ||
- key: location | ||
operator: In | ||
values: | ||
- {{ .Values.location }} | ||
{{- end }} | ||
{{- end }} | ||
tolerations: | ||
- key: beamline | ||
operator: Equal | ||
value: {{ .Values.beamline }} | ||
effect: NoSchedule | ||
- key: location | ||
operator: Equal | ||
value: {{ .Values.location }} | ||
effect: NoSchedule | ||
{{- if .Values.tolerations }} | ||
{{ toYaml .Values.tolerations | indent 8}} | ||
{{- end }} | ||
|
||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: {{ .Release.Name }} | ||
labels: | ||
app: {{ .Release.Name }} | ||
location: {{ .Values.location }} | ||
ioc_group: {{ .Values.ioc_group }} | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8080 | ||
sessionAffinity: None | ||
selector: | ||
app: {{ .Release.Name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# use nginx for publishing opi files over http | ||
image: docker.io/nginxinc/nginx-unprivileged:stable-bullseye-perl | ||
beamline: bl38p | ||
|
||
# These are overridden per ioc_group repository | ||
beamline: | ||
location: | ||
ioc_group: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# this value must be overridden | ||
beamline: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# A Helm Chart for an IOC instance | ||
apiVersion: v2 | ||
name: ioc-instance | ||
|
||
version: 2.0.0+b3 | ||
|
||
type: application |
Oops, something went wrong.