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]>
This commit is contained in:
@@ -63,7 +63,6 @@ A Helm chart to install the SPIRE server.
|
|||||||
| serviceAccount.annotations | object | `{}` | |
|
| serviceAccount.annotations | object | `{}` | |
|
||||||
| serviceAccount.create | bool | `true` | |
|
| serviceAccount.create | bool | `true` | |
|
||||||
| serviceAccount.name | string | `""` | |
|
| serviceAccount.name | string | `""` | |
|
||||||
| socketPath | string | `"/run/spire/server-sockets/spire-server.sock"` | |
|
|
||||||
| telemetry.prometheus.enabled | bool | `false` | |
|
| telemetry.prometheus.enabled | bool | `false` | |
|
||||||
| tolerations | list | `[]` | |
|
| tolerations | list | `[]` | |
|
||||||
| topologySpreadConstraints | list | `[]` | |
|
| topologySpreadConstraints | list | `[]` | |
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ Installed {{ .Chart.Name }}…
|
|||||||
1. Get the currently registered SPIFFE entries from the server:
|
1. Get the currently registered SPIFFE entries from the server:
|
||||||
|
|
||||||
kubectl exec -n {{ .Release.Namespace }} {{ include "spire-server.fullname" . }}-0 -c spire-server -- \
|
kubectl exec -n {{ .Release.Namespace }} {{ include "spire-server.fullname" . }}-0 -c spire-server -- \
|
||||||
bin/spire-server entry show -socketPath {{ .Values.socketPath }}
|
spire-server entry show
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ data:
|
|||||||
server {
|
server {
|
||||||
bind_address = "0.0.0.0"
|
bind_address = "0.0.0.0"
|
||||||
bind_port = "8081"
|
bind_port = "8081"
|
||||||
socket_path = {{ .Values.socketPath | quote }}
|
|
||||||
trust_domain = {{ .Values.trustDomain | quote }}
|
trust_domain = {{ .Values.trustDomain | quote }}
|
||||||
data_dir = "/run/spire/data"
|
data_dir = "/run/spire/data"
|
||||||
log_level = "{{ .Values.logLevel }}"
|
log_level = "{{ .Values.logLevel }}"
|
||||||
|
|||||||
@@ -28,5 +28,5 @@ data:
|
|||||||
{{- with .Values.controllerManager.ignoreNamespaces }}
|
{{- with .Values.controllerManager.ignoreNamespaces }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spireServerSocketPath: {{ .Values.socketPath | quote }}
|
spireServerSocketPath: "/tmp/spire-server/private/api.sock"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- -config
|
- -config
|
||||||
- /run/spire/config/server.conf
|
- /run/spire/config/server.conf
|
||||||
|
env:
|
||||||
|
- name: PATH
|
||||||
|
value: "/opt/spire/bin:/bin"
|
||||||
ports:
|
ports:
|
||||||
- name: grpc
|
- name: grpc
|
||||||
containerPort: 8081
|
containerPort: 8081
|
||||||
@@ -69,7 +72,7 @@ spec:
|
|||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: spire-server-socket
|
- name: spire-server-socket
|
||||||
mountPath: /run/spire/server-sockets
|
mountPath: /tmp/spire-server/private
|
||||||
readOnly: false
|
readOnly: false
|
||||||
- name: spire-config
|
- name: spire-config
|
||||||
mountPath: /run/spire/config
|
mountPath: /run/spire/config
|
||||||
@@ -114,7 +117,7 @@ spec:
|
|||||||
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
|
{{- toYaml .Values.controllerManager.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: spire-server-socket
|
- name: spire-server-socket
|
||||||
mountPath: /run/spire/server-sockets
|
mountPath: /tmp/spire-server/private
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: controller-manager-config
|
- name: controller-manager-config
|
||||||
mountPath: /controller-manager-config.yaml
|
mountPath: /controller-manager-config.yaml
|
||||||
|
|||||||
@@ -80,7 +80,6 @@ dataStorage:
|
|||||||
storageClass: null
|
storageClass: null
|
||||||
|
|
||||||
logLevel: info
|
logLevel: info
|
||||||
socketPath: /run/spire/server-sockets/spire-server.sock
|
|
||||||
jwtIssuer: oidc-discovery.example.org
|
jwtIssuer: oidc-discovery.example.org
|
||||||
|
|
||||||
clusterName: example-cluster
|
clusterName: example-cluster
|
||||||
|
|||||||
Reference in New Issue
Block a user