diff --git a/README.md b/README.md index 0e14472fbc212afb80ed2a5104c1afb598d3ba5b..e2947bbb15550617220e3eac29dcf8936ec9c0f2 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,13 @@ Etcd is required to deploy the operator. $ kubectl --context minikube create -f https://raw.githubusercontent.com/coreos/etcd/master/hack/kubernetes-deploy/etcd.yml +### Deploy fake Teams API + +Teams API is used as a source of human users. + + $ kubectl --context minikube create -f manifests/fake-teams-api.yaml + + ### Check if ThirdPartyResource has been registered $ kubectl --context minikube get thirdpartyresources diff --git a/manifests/configmap.yaml b/manifests/configmap.yaml index 363ffe7c6ec5b69243407b2ebb34423df1762660..9c467f1962f8e682cd1cd7591f61cb8679aa7703 100644 --- a/manifests/configmap.yaml +++ b/manifests/configmap.yaml @@ -27,5 +27,5 @@ data: resync_period: 5m resync_period_pod: 5m super_username: postgres - teams_api_url: https://teams.example.com/api/ + teams_api_url: http://fake-teams-api.default.svc.cluster.local workers: "4" diff --git a/manifests/fake-teams-api.yaml b/manifests/fake-teams-api.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dde01a20ab2f2d741ffb1f69f2a08d64897f54b3 --- /dev/null +++ b/manifests/fake-teams-api.yaml @@ -0,0 +1,46 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: fake-teams-api +spec: + replicas: 1 + template: + metadata: + labels: + name: fake-teams-api + spec: + containers: + - name: fake-teams-api + image: ikitiki/fake-teams-api:latest + +--- + +apiVersion: v1 +kind: Service +metadata: + name: fake-teams-api +spec: + selector: + name: fake-teams-api + ports: + - name: server + port: 80 + protocol: TCP + targetPort: 80 + type: NodePort + +--- + +apiVersion: v1 +kind: Secret +metadata: + name: postgresql-operator + namespace: default +type: Opaque +data: + cluster-registry-rw-token-secret: c29tZSBkYXRhCg== + cluster-registry-rw-token-type: QmVhcmVy + cluster-rw-token-secret: c29tZSBkYXRhCg== + cluster-rw-token-type: QmVhcmVy + read-only-token-secret: c29tZSBkYXRhCg== + read-only-token-type: QmVhcmVy