Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 4681498

Browse files
authored
Better spire-server entry commands (#59)
* Better spire-server entry commands Currently in order to use the cli tools such as spire-server entry show You must know the path within the container to the binary along with what the path is to the socket. This patch makes that unnessisary. This now works: kubectl exec -it spire-server-0 -- spire-server entry show Signed-off-by: Kevin Fox <[email protected]> * Remove setting thats set to default Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]>
1 parent 72d4929 commit 4681498

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

charts/spire/charts/spire-server/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ A Helm chart to install the SPIRE server.
6363
| serviceAccount.annotations | object | `{}` | |
6464
| serviceAccount.create | bool | `true` | |
6565
| serviceAccount.name | string | `""` | |
66-
| socketPath | string | `"/run/spire/server-sockets/spire-server.sock"` | |
6766
| telemetry.prometheus.enabled | bool | `false` | |
6867
| tolerations | list | `[]` | |
6968
| topologySpreadConstraints | list | `[]` | |

charts/spire/charts/spire-server/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Installed {{ .Chart.Name }}…
33
1. Get the currently registered SPIFFE entries from the server:
44

55
kubectl exec -n {{ .Release.Namespace }} {{ include "spire-server.fullname" . }}-0 -c spire-server -- \
6-
bin/spire-server entry show -socketPath {{ .Values.socketPath }}
6+
spire-server entry show

charts/spire/charts/spire-server/templates/configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ data:
88
server {
99
bind_address = "0.0.0.0"
1010
bind_port = "8081"
11-
socket_path = {{ .Values.socketPath | quote }}
1211
trust_domain = {{ .Values.trustDomain | quote }}
1312
data_dir = "/run/spire/data"
1413
log_level = "{{ .Values.logLevel }}"

charts/spire/charts/spire-server/templates/controller-manager-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ data:
2828
{{- with .Values.controllerManager.ignoreNamespaces }}
2929
{{- toYaml . | nindent 6 }}
3030
{{- end }}
31-
spireServerSocketPath: {{ .Values.socketPath | quote }}
31+
spireServerSocketPath: "/tmp/spire-server/private/api.sock"
3232
{{- end }}

charts/spire/charts/spire-server/templates/statefulset.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ spec:
4141
args:
4242
- -config
4343
- /run/spire/config/server.conf
44+
env:
45+
- name: PATH
46+
value: "/opt/spire/bin:/bin"
4447
ports:
4548
- name: grpc
4649
containerPort: 8081
@@ -69,7 +72,7 @@ spec:
6972
{{- toYaml .Values.resources | nindent 12 }}
7073
volumeMounts:
7174
- name: spire-server-socket
72-
mountPath: /run/spire/server-sockets
75+
mountPath: /tmp/spire-server/private
7376
readOnly: false
7477
- name: spire-config
7578
mountPath: /run/spire/config
@@ -114,7 +117,7 @@ spec:
114117
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
115118
volumeMounts:
116119
- name: spire-server-socket
117-
mountPath: /run/spire/server-sockets
120+
mountPath: /tmp/spire-server/private
118121
readOnly: true
119122
- name: controller-manager-config
120123
mountPath: /controller-manager-config.yaml

charts/spire/charts/spire-server/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ dataStorage:
8080
storageClass: null
8181

8282
logLevel: info
83-
socketPath: /run/spire/server-sockets/spire-server.sock
8483
jwtIssuer: oidc-discovery.example.org
8584

8685
clusterName: example-cluster

0 commit comments

Comments
 (0)