-
Notifications
You must be signed in to change notification settings - Fork 1
/
mesh.yaml.template
63 lines (58 loc) · 2.24 KB
/
mesh.yaml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: scone/5.8
kind: mesh
cas:
- name: cas # cas used to store the policy of this application
alias: ["image", "security", "access", "attestation"] # use alias in case CAS instance has multiple roles
cas_url: $CAS_URL # cas.default # exported as {{cas_cas_cas_url}}
cas_key: $CAS_KEY
tolerance: "-G" # TCB out of date
mode: EncryptedManifest
cas_encryption_key: $CAS_SESSION_ENCRYPTION_KEY
policy:
namespace: $APP_NAMESPACE # namespace on CAS instance `cas`
tolerate: "outdated-tcb, insecure-configuration, hyperthreading, insecure-igpu, software-hardening-needed, aepic-leak"
# To ignore all security advisories, uncomment the following line:
ignore_advisories: "*"
# To be more precise regarding the advisories, i.e., instead of ignoring all advisories by specifying "*",
# one can present a list of advisories as follows:
# ignore_advisories: "INTEL-SA-00586, INTEL-SA-00614, INTEL-SA-00615, INTEL-SA-00730, INTEL-SA-00738, INTEL-SA-00767"
# define environment variables
# - this is can be done for each individual service defined in the services section
# - these definitions are only visible for this service
# - these definitions overwrite any definitions of the global or helm section
# - we define two special services:
# - "global": these definitions are shared by all services
# - "helm": this behaves like the "global" service - the intention is to
# collect helm specific definitions here
env:
- service: global
env:
- name: REDIS_HOST
value: $RELEASE-redis
- name: REDIS_PORT
value: 6379
- name: redis_server_name
value: $RELEASE-redis
- name: imagePullSecrets
value: sconeapps
- name: APP_SERVICE_PORT
value: 4996
- name: restartPolicy
value: OnFailure
- name: useSGXDevPlugin # value chart
value: scone
- name: redis_client_name # secrets
value: $RELEASE-python-hello-user
- name: api_host
value: "$RELEASE-python-hello-user"
- name: CLUSTER_DNS_IP
value: "10.96.0.10"
- name: K8sNAMESPACE
value: "$NAMESPACE"
- name: sgxEpcMem
value: 128
services:
- name: flask
image: $APP_IMAGE_REPO/python_flask_redis:latest
- name: redis
image: $SCONECTL_REPO/redis:${VERSION}