-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cad552c
commit 7bcf4d7
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- ./openstackclient.yaml | ||
|
||
patches: | ||
- patch: |- | ||
- op: replace | ||
path: /spec/containers/0/image | ||
value: quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified | ||
target: | ||
kind: Pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This pod assumes at least mariadb && keystone are running in the ctlplane | ||
# and the associated openstack secrets (osp-secret and openstack-config) have | ||
# been created, as well as the configmap where clouds.yaml is stored. | ||
# It gets a cli that can be used to interact with the deployed components. | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
annotations: | ||
openshift.io/scc: anyuid | ||
labels: | ||
app: openstackclient | ||
name: openstackclient | ||
spec: | ||
containers: | ||
- args: | ||
- --single-child | ||
- -- | ||
- /bin/bash | ||
- -c | ||
- /bin/sleep infinity | ||
command: | ||
- /bin/dumb-init | ||
env: | ||
- name: OS_CLOUD | ||
value: default | ||
imagePullPolicy: IfNotPresent | ||
name: openstackclient | ||
resources: {} | ||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
runAsGroup: 42401 | ||
runAsNonRoot: true | ||
runAsUser: 42401 | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /etc/openstack/clouds.yaml | ||
name: openstack-config | ||
subPath: clouds.yaml | ||
- mountPath: /etc/openstack/secure.yaml | ||
name: openstack-config-secret | ||
subPath: secure.yaml | ||
dnsPolicy: ClusterFirst | ||
enableServiceLinks: true | ||
volumes: | ||
- configMap: | ||
defaultMode: 420 | ||
name: openstack-config | ||
name: openstack-config | ||
- name: openstack-config-secret | ||
secret: | ||
defaultMode: 420 | ||
secretName: openstack-config-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters