I upload the image to the Azure DeveOps pipeline, but it gives the following error:
##[error]unauthorized: Invalid clientid or client secret.
##[error]The process ‘/usr/bin/docker’ failed with exit code 1
enter image description here
deployment.yaml
apiVersion : apps/v1
kind: Deployment
metadata:
name: otmcarga
spec:
replicas: 1
selector:
matchLabels:
app: otmcarga
template:
metadata:
labels:
app: otmcarga
spec:
containers:
- name: otmcarga
image: acrotmdev.azurecr.io/otmcarga
ports:
- containerPort: 80
env:
- name: SPRING_PROFILES_ACTIVE
value: "dev"
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 60
services.yaml
apiVersion: v1
kind: Service
metadata:
name: otmcarga
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: otmcarga
It worked normally before… I wanted to deploy the docker image in the Registre Container
New contributor
Josias Martins Caitano is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.