Skip to content

Instantly share code, notes, and snippets.

@heavypackets
Last active October 17, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heavypackets/e8b12f6604495f896153b600db2b1130 to your computer and use it in GitHub Desktop.
Save heavypackets/e8b12f6604495f896153b600db2b1130 to your computer and use it in GitHub Desktop.
spire-server K8 configuration
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: spire-server
namespace: spire
labels:
app: spire-server
spec:
selector:
matchLabels:
app: spire-server
replicas: 1
template:
metadata:
labels:
app: spire-server
spec:
containers:
- name: spire-server
image: spiffe/spire-server:latest
imagePullPolicy: Always
ports:
- name: spire-http
containerPort: 8080
- name: spire-grpc
containerPort: 8081
command: [ "/opt/spire/spire-server" ]
volumeMounts:
- name: spire-conf
mountPath: /opt/spire/conf/server.conf
subPath: server.conf
- name: spire-data
mountPath: /opt/spire/data/
readOnly: false
volumes:
- name: spire-conf
configMap:
name: spire-conf
- name: spire-data
hostPath:
path: /opt/spire/data/
---
apiVersion: v1
kind: Service
metadata:
name: spire-server
namespace: spire
labels:
app: spire-server
spec:
ports:
- name: spire-http
port: 8080
targetPort: 8080
protocol: TCP
- name: spire-grpc
port: 8081
targetPort: 8081
protocol: TCP
selector:
app: spire-server
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment