Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker limit #3

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hyperledger/roles/network_config/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ nfs_server_mount_dir: "/opt/share"
# kubernetes kubectl command
k8s_kubectl_cmd: ""

# kubernetes image pull secret
k8s_image_pull_secret: ""

Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
- name: certificate
persistentVolumeClaim:
claimName: $pvName
{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}

---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,9 @@ spec:
- name: crypto-config
persistentVolumeClaim:
claimName: $cryptoName
{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}

---
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ spec:
- name: orderer-crypto-pv
persistentVolumeClaim:
claimName: $pvName

{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}

---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ spec:
- containerPort: 2181
- containerPort: 2888
- containerPort: 3888

{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}

---
apiVersion: v1
Expand Down Expand Up @@ -137,7 +140,10 @@ spec:
value: "{{ fabric_num_kafka|int }}"
ports:
- containerPort: 9092

{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}

---
apiVersion: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ spec:
claimName: $pvName
- name: dind-graph-storage
emptyDir: {}
{% if k8s_image_pull_secret|length %}
imagePullSecrets:
- name: {{ k8s_image_pull_secret }}
{% endif %}


---
Expand Down
3 changes: 3 additions & 0 deletions inventory/blockchain/group_vars/blockchain-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ nfs_server_mount_dir: "/opt/share"

# kubernetes kubectl command
k8s_kubectl_cmd: "{{ lookup('env', 'INVENTORY_DIR_PATH') }}/cluster/artifacts/kubectl --kubeconfig={{ lookup('env', 'INVENTORY_DIR_PATH') }}/cluster/artifacts/admin.conf"

# kubernetes image pull secret
k8s_image_pull_secret: ""
7 changes: 7 additions & 0 deletions inventory/cluster/group_vars/k8s-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,10 @@ kubeadm_enabled: true
# The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.
#kube_read_only_port: 10255

# Setting download_run_once: True will make kubespray download container images and binaries only once and then push
# them to the cluster nodes. The default download delegate node is the first kube-master.
# Set download_localhost: True to make localhost the download delegate. This can be useful if cluster nodes cannot
# access external addresses. To use this requires that docker is installed and running on the ansible master and that
# the current user is either in the docker group or can do passwordless sudo, to be able to access docker.
download_run_once: True
download_localhost: True