Inspiration
The Prime source of inspiration I got from video post on @kunalkushwaha channel with @shimon. The video they posted was all about how to use the datree platfrom and in tha they gave walkthrough of datree platform .In they should us how to create the custom policy and and use the default policy from that i got inspired to create the custom policy of my own
What it does
In Total I have created four(4) custom policy based on container and security. What basically these policies does is that it check the yaml form kubernetes cluster before its deployment stage.
How we built it
Each policies has its own functionality according to their code the all custom policy as follows:
- Ensure the namespace This custom policy basically check that whether the kubernetes cluster have declared the namespace or not. If it does not have created it will fail and will show and error
- Check for the multi-container This custom policy basically does that check whether the kubernetes cluster's has more container than expected. If the cluster has more number of container than expected then the policy will fail. We can also change the number the container as per are requirement 3.Ensure the container port is exposed This custom policy basically does that check whether the kubernetes cluster's container port is exposed. If the container port is exposed the custom policy will pass if not then it will fail 4.Ensure the container have correct image or OS This custom policy basically does that check whether the kubernetes cluster's container image is correct or not. If the container image is not as expected to be it will fail, if the it meet the requirement it will pass.
More Details of the project with yaml and policies is at my github respository
Challenges I ran into
Initially for me it was very challenging task for me because being an beginner i don't single thing about the cloud and cloud technology but the policy where written in yaml. Honestly speaking i never heard of the yaml itself but as i started to learn more and more thing getting smooth. I down tons of mistake in synatax initially but datree team where there to help me at every point and guide and help to find the solution of the problem by myself. A very Thanks you datree team for the support and finally after the all the mistake I created four custom policies
Accomplishments that we're proud of
I really proud of what I have created I really can't imagine that two days ago i did'nt single line of yaml but now i created four policies. It was really i great experience
What we learned
It was very Wonderful experiance while build these custom policy Initially for it was very challenging task for me because begin an beginner. But eventually as go deeper and deeper in Learning yaml syntax and more about cloud technology and different use case. I Learned new thing such as what is kubernetes,docker,cloud and cluster and also about git and github. while Learning new syntax i have done many mistakes and gone through n-th number of problem but very thanks to the team of the datree to help me when i was stuck. They guided very much they gave me various references from where i can learn and solve the problem that I encountered
Inspite of the all this i finally able to manage to create 4 custom policy. Thanks You very much for this Wonderful opportunity.
What's next for Datree Custom Policy on Container and Security
There are more custom policy to create
Built With
- datree
- yaml
Log in or sign up for Devpost to join the conversation.