blob: 5bb835154de092b9feb012cdf4a47ef7d42d9bc9 [file] [log] [blame]
Instrumentalaae5c072019-03-29 15:42:37 -05001. ../../docker/d.props
2IMAGE=onap/aaf/aaf_agent:$VERSION
3
4kubectl -n onap run -it --rm aaf-agent-$USER --image=$IMAGE --overrides='
5{
6 "spec": {
7 "containers": [
8 {
9 "name": "aaf-agent-'$USER'",
10 "image": "'$IMAGE'",
11 "imagePullPolicy": "IfNotPresent",
12 "command": [
13 "bash",
14 "-c",
15 "/opt/app/aaf_config/bin/agent.sh && cd /opt/app/osaaf/local && exec bash"
16 ],
17 "env": [
18 {
19 "name": "aaf_locator_container",
20 "value": "helm"
21 },{
22 "name": "aaf_locator_fqdn",
23 "value": "'$HOSTNAME'"
24 },{
25 "name": "aaf_locator_url",
26 "value": "https://aaf-locate:8095"
27 },{
28 "name": "aaf_locator_public_hostname",
29 "value": "'$HOSTNAME'"
30 },{
31 "name": "AAF_ENV",
32 "value": "'$AAF_ENV'"
33 },{
34 "name": "LATITUDE",
35 "value": "'$LATITUDE'"
36 },{
37 "name": "LONGITUDE",
38 "value": "'$LONGITUDE'"
39 },{
40 "name": "CASSANDRA_CLUSTER",
41 "value": "'$CASSANDRA_CLUSTER'"
42 },{
43 "name": "CASSANDRA_USER",
44 "value": "'$CASSANDRA_USER'"
45 },{
46 "name": "CASSANDRA_PASSWORD",
47 "value": "'$CASSANDRA_PASSWORD'"
48 },{
49 "name": "CASSANDRA_PORT",
50 "value": "'$CASSANDRA_PORT'"
51 }
52 ],
53 "stdin": true,
54 "stdinOnce": true,
55 "tty": true,
56 "volumeMounts": [
57 {
58 "mountPath": "/opt/app/osaaf",
59 "name": "aaf-config-vol"
60 },
61 {
62 "mountPath": "/opt/app/aaf/status",
63 "name": "aaf-status-vol"
64 }
65 ]
66 }
67 ],
68 "volumes": [
69 {
70 "name": "aaf-config-vol",
71 "persistentVolumeClaim": {
72 "claimName": "aaf-config-pvc"
73 }
74 },
75 {
76 "name": "aaf-status-vol",
77 "persistentVolumeClaim": {
78 "claimName": "aaf-status-pvc"
79 }
80 }
81 ]
82 }
83}
84' --restart=Never -- bash