-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixing tutorial Signed-off-by: Maia Iyer <[email protected]> * adding example deployment file Signed-off-by: Maia Iyer <[email protected]> * format markdown Signed-off-by: Maia Iyer <[email protected]> * addtional formatting Signed-off-by: Maia Iyer <[email protected]> * bolding lines Signed-off-by: Maia Iyer <[email protected]> * fix wording Signed-off-by: Maia Iyer <[email protected]> * bolded heading Signed-off-by: Maia Iyer <[email protected]> --------- Signed-off-by: Maia Iyer <[email protected]>
- Loading branch information
Showing
4 changed files
with
118 additions
and
16 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 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,92 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: spire-server | ||
namespace: spire | ||
labels: | ||
app: spire-server | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: spire-server | ||
serviceName: spire-server | ||
template: | ||
metadata: | ||
namespace: spire | ||
labels: | ||
app: spire-server | ||
spec: | ||
serviceAccountName: spire-server | ||
containers: | ||
- name: spire-server | ||
image: ghcr.io/spiffe/spire-server:1.4.4 | ||
args: | ||
- -config | ||
- /run/spire/config/server.conf | ||
ports: | ||
- containerPort: 8081 | ||
volumeMounts: | ||
- name: spire-config | ||
mountPath: /run/spire/config | ||
readOnly: true | ||
- name: spire-data | ||
mountPath: /run/spire/data | ||
readOnly: false | ||
- name: socket # 👈 ADDITIONAL VOLUME | ||
mountPath: /tmp/spire-server/private # 👈 ADDITIONAL VOLUME | ||
livenessProbe: | ||
httpGet: | ||
path: /live | ||
port: 8080 | ||
failureThreshold: 2 | ||
initialDelaySeconds: 15 | ||
periodSeconds: 60 | ||
timeoutSeconds: 3 | ||
readinessProbe: | ||
httpGet: | ||
path: /ready | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 | ||
- name: tornjak-backend ### 👈 BEGIN ADDITIONAL CONTAINER ### | ||
image: ghcr.io/spiffe/tornjak-be:latest | ||
args: | ||
- --config | ||
- /run/spire/config/server.conf | ||
- --tornjak-config | ||
- /run/spire/tornjak-config/server.conf | ||
ports: | ||
- containerPort: 8081 | ||
volumeMounts: | ||
- name: spire-config | ||
mountPath: /run/spire/config | ||
readOnly: true | ||
- name: tornjak-config | ||
mountPath: /run/spire/tornjak-config | ||
readOnly: true | ||
- name: spire-data | ||
mountPath: /run/spire/data | ||
readOnly: false | ||
- name: socket | ||
mountPath: /tmp/spire-server/private ### 👈 END ADDITIONAL CONTAINER ### | ||
volumes: | ||
- name: spire-config | ||
configMap: | ||
name: spire-server | ||
- name: tornjak-config # 👈 ADDITIONAL VOLUME | ||
configMap: # 👈 ADDITIONAL VOLUME | ||
name: tornjak-agent # 👈 ADDITIONAL VOLUME | ||
- name: socket # 👈 ADDITIONAL VOLUME | ||
emptyDir: {} # 👈 ADDITIONAL VOLUME | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: spire-data | ||
namespace: spire | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
|
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