-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deployment chagnes to run kmra plugin
- Loading branch information
Showing
8 changed files
with
173 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ enclave-config/privatekey.pem | |
*~ | ||
charts/crds | ||
tcs-issuer*.tgz | ||
config/manager/kmra/.* |
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,5 @@ | ||
# Set appropriate base64 encoded certficates and private key values | ||
# to access the KMRA server. | ||
ca.crt= | ||
client.crt= | ||
client.key= |
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 @@ | ||
# NOTE: update the Key server address beofere | ||
# deploying using `make deploy` | ||
KEY_SERVER=localhost:443 |
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,56 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
initContainers: | ||
- name: init-kmra | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
# The data in the secret are base64 encoded. | ||
# km-wrap expects them in PEM encoding. | ||
# So, we first decode them in the init container | ||
# before starting the actual controller container. | ||
command: ['sh', '-c', 'set -x; for f in /tmp/certs/*; do cat $f | base64 -d > /certs/$(basename $f); done ; chown -R 5000:5000 /certs'] | ||
volumeMounts: | ||
- name: ca-secrets | ||
mountPath: /certs/ | ||
- name: pre-ca-secrets | ||
mountPath: /tmp/certs | ||
containers: | ||
- name: kmra-plugin | ||
image: kmra-plugin | ||
command: | ||
- /kmra-plugin | ||
args: | ||
- --plugin-name=kmra | ||
- --plugin-endpoint=/plugins/kmra.sock | ||
- --registry-endpoint=/registry/registry.sock | ||
name: kmra-plugin | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 30Mi | ||
requests: | ||
cpu: 100m | ||
memory: 20Mi | ||
envFrom: | ||
- configMapRef: | ||
name: tcs-kmra-server-config | ||
volumeMounts: | ||
- name: ca-secrets | ||
mountPath: /certs/ | ||
readOnly: true | ||
- name: plugins-dir | ||
mountPath: /plugins/ | ||
- name: registry-dir | ||
mountPath: /registry/ | ||
volumes: | ||
- name: pre-ca-secrets | ||
secret: | ||
secretName: kmra-secrets | ||
- name: ca-secrets | ||
emptyDir: {} |
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 |
---|---|---|
@@ -1,22 +1,34 @@ | ||
resources: | ||
- tcs_issuer.yaml | ||
|
||
patchesStrategicMerge: | ||
- kmra/inject_kmra_plugin_patch.yaml | ||
|
||
generatorOptions: | ||
disableNameSuffixHash: true | ||
|
||
configMapGenerator: | ||
- files: | ||
- tcs_issuer_config.yaml | ||
name: config | ||
- envs: | ||
- kmra/.server.conf | ||
name: kmra-server-config | ||
|
||
secretGenerator: | ||
- envs: | ||
- .env.secret | ||
name: issuer-pkcs11-conf | ||
- envs: | ||
- kmra/.ca.secrets | ||
name: kmra-secrets | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
images: | ||
- name: kmra-plugin | ||
newName: intel/trusted-certificate-issuer | ||
newTag: latest | ||
- name: tcs-issuer | ||
newName: intel/trusted-certificate-issuer | ||
newTag: latest |
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