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

Kubernetes conjur deployment scripts exist #2

Merged

Conversation

jtuttle
Copy link
Member

@jtuttle jtuttle commented Apr 16, 2018

CONJ-4981

README.md Outdated
Conjur image from your registry:

```
kubectl create secret docker-registry conjurregcred \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you create the secret here it will be in the wrong namespace. CONJUR_NAMESPACE_NAME namespace hasn't been created yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed this by instructing the user to create the namespace and secret before running the scripts.

README.md Outdated
id: conjur/authn-k8s/{{ SERVICE_ID }}
```

The `SERVICE_ID` should describe the Kubernetes node in which your Conjur cluster
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to say "Kubernetes cluster" instead of "Kubernetes node" here. This makes it seem like Conjur should only be deployed on one node, when multiple nodes should be used for a production setup.

I see we use the same language in the OpenShift README as well.

https://github.com/cyberark/openshift-conjur-deploy/blob/master/README.md#appliance-configuration

I think we should change it there too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in both READMEs.

@@ -0,0 +1,5 @@
{
"postgresql": {
"allocated_memory_kb": 100000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we do this for testing, but I wonder about the performance effects of this in a live traffic setup.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this for now. I'm guessing it's an artifact copied over demos that ran in a user's local environment and thus had constrained resources.

# Must run as root to unpack Conjur seed files on standbys for high availability.
# TODO: replace this overprivileging with a service account + role + role binding

# TODO: perhaps clusterroles should be defined independent of these scripts. for one this could delete an important clusterrole for user, unwittingly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think we should explain this more up front, because you need to have the cluster-admin role to load the authenticator-role manifest.

kubernetes/ingress-nginx#1663 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this out to the README.

conjur-master.$CONJUR_NAMESPACE_NAME.svc.cluster.local

Outside the cluster:
https://$conjur_master_ip:443
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got to this step, but am unable to connect the Conjur CLI, it just hangs

./8_print_config.sh
++++++++++++++++++++++++++++++++++++++


Conjur cluster is ready.

Addresses for the Conjur Master service:

  Inside the cluster:
    conjur-master.conjur-dustinc.svc.cluster.local

  Outside the cluster:
    https://35.193.179.143

Conjur login credentials:
  admin / xxxxx
conjur init -h 35.193.149.143 -f ~/.conjurrc.k8s
... no go

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed this by providing a manifest and instructions for running a CLI container within k8s, which allows you to just use conjur-master as your hostname.

@dustinmm80 dustinmm80 merged commit a604ef2 into master Apr 17, 2018
@dustinmm80 dustinmm80 deleted the CONJ-4981--kubernetes-conjur-deployment-scripts-exist branch April 17, 2018 20:53
nessiLahav added a commit that referenced this pull request Jul 8, 2019
conjur-jenkins pushed a commit that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants