k8s part 6 (security) Flashcards

1
Q

what are secrets in k8s?

A

secrets are used to store and manage sensitive information, such as passwords, token or a key, Instead of hardcoding this sensitive data in your application code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are the disadvantages of hard coding sensitive data in your application?

A
  • Anyone with access can get to the data
  • developer will always need this data if image has to be modified.
  • Any update of the data will require a new image for the application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are some other solutions for storing sensitive data ?

A
  • AWS Secrets Manager
  • HashiCorp Vault
  • Azure Key Vault
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

List some types of secret?

A
  • generic
  • docker registry
  • TLS
  • Service Account Tokens
  • Basic Authentication Secrets
  • SSH Auth Secret
    -Opaque Secrets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the two ways you can mount secrets to a pod?

A
  • volume
  • environment variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are configmaps?

A

a ConfigMap is a way to store configuration settings for applications in Kubernetes. Instead of hardcoding these settings into your application, you can put them in a ConfigMap, which makes it easier to manage and change the settings without having to modify the application code itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

when you dont specify a service type, which one does k8s use by default?

A

clusterIP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what property do you use when setting an environment variable in k8s?

A
  • env
  • example name: app
    value: nginx
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

configmaps store information in plain text T or F ?

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly