1Password on Mastodon

1password deployment annotation is not creating kubernetes secret on the cluster

smutonismutoni
Community Member

I am trying to create a kubernetes secret by adding the 1password annotations to my deployment annotations. I can see the annotations in my deployment but the secret is not being creates on the kubernetes cluster. I am I missing something? Below are the annotations in my deployment.
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: '3'
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{"operator.1password.io/item-name":"test-secret","operator.1password.io/item-path":"vaults/test-k8s-cluster/items/test-secret"},"labels":{"app.kubernetes.io/instance":"helloworld-app","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/name":"hello-world","app.kubernetes.io/version":"1.16.0","argocd.argoproj.io/instance":"helloworld-app","helm.sh/chart":"hello-world-0.1.0"},"name":"helloworld-app-hello-world","namespace":"dev"},"spec":{"replicas":3,"selector":{"matchLabels":{"app.kubernetes.io/instance":"helloworld-app","app.kubernetes.io/name":"hello-world"}},"template":{"metadata":{"labels":{"app.kubernetes.io/instance":"helloworld-app","app.kubernetes.io/name":"hello-world"}},"spec":{"containers":[{"image":"nginx:1.16.0","imagePullPolicy":"IfNotPresent","livenessProbe":{"httpGet":{"path":"/","port":"http"}},"name":"hello-world","ports":[{"containerPort":80,"name":"http","protocol":"TCP"}],"readinessProbe":{"httpGet":{"path":"/","port":"http"}}}],"serviceAccountName":"helloworld-app-hello-world"}}}}
operator.1password.io/item-name: test-secret
operator.1password.io/item-path: vaults/test-k8s-cluster/items/test-secret
creationTimestamp: '2022-11-29T20:47:33Z'
generation: 10
labels:
app.kubernetes.io/instance: helloworld-app
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: hello-world
app.kubernetes.io/version: 1.16.0


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
Referrer: forum-search:1password deployment annotation is not creating kubernetes secret on the cluster

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file