I have to login to Openshift with api and I am mentioning apikey in the deployment.yaml file like below:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: abc
spec:
replicas: 1
template:
metadata:
labels:
app: abc
version: v1
spec:
containers:
- name: chaos
image: abcusr/abc:v1
imagePullPolicy: Always
env:
- name: HOST
value: $host
- name: NAMESPACE
value: $namespace
- name: APIKEY
value: $apikey
These 3 env variables are set in travis as a env variables. But when I run the build my deployment was not successful. It was giving error:
error: --server and passing the server URL as an argument are mutually exclusive
But when I hard code all these values it works.