-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with Vault and Kubernetes Calico/Canal communication (#1434)
* Add vault namespace and fixes related to connection issue * Add default policy for default namespace * Remove service endpoint, execute certificate part if enabled, setting protocol correctly in Vault Helm chart * Add possibility to configure manually Vault endpoint
- Loading branch information
Showing
6 changed files
with
86 additions
and
58 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...src/epicli/data/common/ansible/playbooks/roles/vault/files/kubernetes/vault-namespace.yml
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,6 @@ | ||
# {{ ansible_managed }} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: vault |
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
18 changes: 18 additions & 0 deletions
18
...ata/common/ansible/playbooks/roles/vault/templates/kubernetes/vault-default-policy.yml.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,18 @@ | ||
# {{ ansible_managed }} | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: vault-policy | ||
namespace: default | ||
spec: | ||
podSelector: {} | ||
policyTypes: | ||
- Egress | ||
egress: | ||
- to: | ||
{% for server in groups['vault'] %}- ipBlock: | ||
cidr: {{ hostvars[server]['ansible_default_ipv4']['address'] }}/32 | ||
{% endfor %}ports: | ||
- protocol: TCP | ||
port: 8200 |
22 changes: 0 additions & 22 deletions
22
...on/ansible/playbooks/roles/vault/templates/kubernetes/vault-endpoint-configuration.yml.j2
This file was deleted.
Oops, something went wrong.
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