Skip to content

Commit

Permalink
adding openstack support to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-viles committed Jan 17, 2024
1 parent c81870c commit 4e7d97b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions charts/baski-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ spec:
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- mountPath: /home/baski/.config/openstack/
name: clouds
readOnly: true
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -77,3 +81,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: clouds
secret:
secretName: {{ .Values.server.existingSecretName }}
items:
- key: openstackConfig
path: clouds.yaml
2 changes: 1 addition & 1 deletion docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN apk update --no-cache
RUN apk add jq curl

RUN echo "baski:x:1000:1000:Baski Non Root,,,:/home/baski:" >> /etc/passwd
RUN mkdir -p /home/baski/
RUN mkdir -p /home/baski/.config/openstack
RUN chown baski: -R /home/baski

COPY --from=go-builder /tmp/baski-server /usr/bin/
Expand Down

0 comments on commit 4e7d97b

Please sign in to comment.