-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The following changes enable KBS deployment with a different configuration for s390x: - Environment variable declaration: SE_SKIP_CERTS_VERIFICATION - Persist volume/volume claim: required attestation credentials This commit differentiates the {overlays, nodeport} configuration for KBS deployment between x86_64 and s390x. It also includes updates to `deploy-kbs.sh`. Signed-off-by: Hyounggyu Choi <[email protected]>
- Loading branch information
Showing
13 changed files
with
113 additions
and
5 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
File renamed without changes.
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: coco-tenant | ||
|
||
resources: | ||
- ../../overlays/x86_64 | ||
|
||
patches: | ||
- path: patch.yaml | ||
target: | ||
group: "" | ||
kind: Service | ||
name: kbs |
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,3 @@ | ||
- op: add | ||
path: /spec/type | ||
value: NodePort |
File renamed without changes.
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: coco-tenant | ||
|
||
resources: | ||
- ../../base |
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,20 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: coco-tenant | ||
|
||
resources: | ||
- ../common | ||
- pvc.yaml | ||
|
||
patches: | ||
- path: patch.yaml | ||
target: | ||
kind: Deployment | ||
name: kbs | ||
|
||
# Store keys that KBS will release to workloads after attestation: | ||
# kbs:///reponame/workload_key/key.bin | ||
secretGenerator: | ||
- files: | ||
- key.bin | ||
name: keys |
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,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: kbs | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: kbs | ||
env: | ||
- name: SE_SKIP_CERTS_VERIFICATION | ||
value: "true" | ||
volumeMounts: | ||
- name: test-local-volume | ||
mountPath: /run/confidential-containers/ibmse/ | ||
volumes: | ||
- name: test-local-volume | ||
persistentVolumeClaim: | ||
claimName: test-local-pvc |
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,20 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: test-local-pv | ||
spec: | ||
capacity: | ||
storage: 1Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: local-storage | ||
local: | ||
path: ${IBM_SE_CREDS_DIR} | ||
nodeAffinity: | ||
required: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/hostname | ||
operator: In | ||
values: | ||
- ${NODE_NAME} |
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,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: test-local-pvc | ||
namespace: coco-tenant | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: local-storage | ||
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
File renamed without changes.