-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-370] Make ansible agent run on existing k8s
Ansible agent currently can only deploy fabric onto k8s environment it sets up. This patch will allow a user to use any existing k8s environment to stand up a fabric network Change-Id: Iad486f5d2802fa93d1ddd24358bca512c3859643 Signed-off-by: Tong Li <litong01@us.ibm.com> Co-authored-by: Surya <suryalnvs@gmail.com>
- Loading branch information
Showing
15 changed files
with
281 additions
and
250 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
1 change: 1 addition & 0 deletions
1
src/agent/ansible/roles/deploy_compose/certsetup/templates/configtx.j2
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
1 change: 1 addition & 0 deletions
1
src/agent/ansible/roles/deploy_compose/certsetup/templates/core.j2
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
19 changes: 19 additions & 0 deletions
19
src/agent/ansible/roles/deploy_k8s/fabricsetup/templates/certssetup.j2
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 @@ | ||
--- | ||
kind: Pod | ||
apiVersion: v1 | ||
metadata: | ||
name: fabriccertspod | ||
spec: | ||
volumes: | ||
- name: task-pv-storage | ||
persistentVolumeClaim: | ||
claimName: fabriccerts | ||
containers: | ||
- name: task-pv-container | ||
image: busybox | ||
args: | ||
- sleep | ||
- "3000" | ||
volumeMounts: | ||
- mountPath: "/fabriccerts" | ||
name: task-pv-storage |
Oops, something went wrong.