Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Fix secret management
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Jun 17, 2020
1 parent 890795a commit 60ed3cd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions config/manager/etcd/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ spec:
- name: ETCD_ENDPOINTS
valueFrom:
secretKeyRef:
name: calico-route-reflector-etcd-config
name: etcd-config
key: ETCD_ENDPOINTS
- name: ETCD_DISCOVERY_SRV
valueFrom:
secretKeyRef:
name: calico-route-reflector-etcd-config
name: etcd-config
key: ETCD_DISCOVERY_SRV
- name: ETCD_USERNAME
valueFrom:
secretKeyRef:
name: calico-route-reflector-etcd-config
name: etcd-config
key: ETCD_USERNAME
- name: ETCD_PASSWORD
valueFrom:
secretKeyRef:
name: calico-route-reflector-etcd-config
name: etcd-config
key: ETCD_PASSWORD
- name: ETCD_KEY_FILE
value: "/root/etcd/ETCD_KEY_FILE"
value: "/etc/etcd/ETCD_KEY_FILE"
- name: ETCD_CERT_FILE
value: "/root/etcd/ETCD_CERT_FILE"
value: "/etc/etcd/ETCD_CERT_FILE"
- name: ETCD_CA_CERT_FILE
value: "/root/etcd/ETCD_CA_CERT_FILE"
value: "/etc/etcd/ETCD_CA_CERT_FILE"
2 changes: 1 addition & 1 deletion config/manager/etcd/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: calico-route-reflector-etcd-config
name: etcd-config
type: Opaque
data:
ETCD_ENDPOINTS:
Expand Down
4 changes: 2 additions & 2 deletions config/manager/etcd/volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
- name: manager
volumeMounts:
- name: calico-route-reflector-etcd-config
mountPath: "/root/etcd"
mountPath: "/etc/etcd"
readOnly: true
volumes:
- name: calico-route-reflector-etcd-config
secret:
secretName: calico-route-reflector-etcd-config
secretName: etcd-config
14 changes: 7 additions & 7 deletions config/manager/kdd/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ spec:
- name: DATASTORE_TYPE
value: "kubernetes"
- name: KUBECONFIG
value: "/root/kdd/KUBECONFIG"
value: "/etc/kdd/KUBECONFIG"
- name: K8S_API_ENDPOINT
valueFrom:
secretKeyRef:
name: calico-route-reflector-kdd-config
name: kdd-config
key: K8S_API_ENDPOINT
- name: K8S_KEY_FILE
value: "/root/kdd/K8S_KEY_FILE"
value: "/etc/kdd/K8S_KEY_FILE"
- name: K8S_CERT_FILE
value: "/root/kdd/K8S_CERT_FILE"
value: "/etc/kdd/K8S_CERT_FILE"
- name: K8S_CA_FILE
value: "/root/kdd/K8S_CA_FILE"
value: "/etc/kdd/K8S_CA_FILE"
- name: K8S_INSECURE_SKIP_TLS_VERIFY
valueFrom:
secretKeyRef:
name: calico-route-reflector-kdd-config
name: kdd-config
key: K8S_INSECURE_SKIP_TLS_VERIFY
- name: K8S_DISABLE_NODE_POLL
valueFrom:
secretKeyRef:
name: calico-route-reflector-kdd-config
name: kdd-config
key: K8S_DISABLE_NODE_POLL
2 changes: 1 addition & 1 deletion config/manager/kdd/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: calico-route-reflector-kdd-config
name: kdd-config
type: Opaque
data:
KUBECONFIG:
Expand Down
4 changes: 2 additions & 2 deletions config/manager/kdd/volumes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
- name: manager
volumeMounts:
- name: calico-route-reflector-kdd-config
mountPath: "/root/kdd"
mountPath: "/etc/kdd"
readOnly: true
volumes:
- name: calico-route-reflector-kdd-config
secret:
secretName: calico-route-reflector-kdd-config
secretName: kdd-config

0 comments on commit 60ed3cd

Please sign in to comment.